v0.2.2: corrected casting errors in javac compiler

This commit is contained in:
Evan Debenham
2014-10-24 22:13:31 -04:00
parent 7648e8fc17
commit 161b444d67
2 changed files with 2 additions and 2 deletions

View File

@@ -690,7 +690,7 @@ public abstract class RegularLevel extends Level {
public void restoreFromBundle( Bundle bundle ) {
super.restoreFromBundle( bundle );
rooms = new HashSet<Room>( (Collection<? extends Room>) bundle.getCollection( "rooms" ) );
rooms = new HashSet<Room>( (Collection<Room>) ((Collection<?>) bundle.getCollection( "rooms" )) );
for (Room r : rooms) {
if (r.type == Type.WEAK_FLOOR) {
weakFloorCreated = true;