Suppressed compiler warning

This commit is contained in:
Collin Smith 2019-03-30 01:03:35 -07:00
parent b1d6988785
commit 43c4e32ecb

View File

@ -83,7 +83,8 @@ public class WaygatePanel extends WidgetGroup implements Disposable {
down = new TextureRegionDrawable(waygateicons.getTexture(4));
}};
Array<Levels.Entry>[] waypoints = new Array[5];
@SuppressWarnings("unchecked")
Array<Levels.Entry>[] waypoints = (Array<Levels.Entry>[]) new Array[5];
for (int i = 0; i < waypoints.length; i++) waypoints[i] = new Array<>(9);
for (Levels.Entry level : Riiablo.files.Levels) {
if (level.Waypoint != 0xFF) {