V0.2.0a: Fixed crashing on deleted items when loading saves.

This commit is contained in:
Evan Debenham 2014-09-16 20:04:37 -04:00
parent b8080a9dbe
commit a02a5f2c0d

View File

@ -117,7 +117,7 @@ public class Bag extends Item implements Iterable<Item> {
public void restoreFromBundle( Bundle bundle ) { public void restoreFromBundle( Bundle bundle ) {
super.restoreFromBundle( bundle ); super.restoreFromBundle( bundle );
for (Bundlable item : bundle.getCollection( ITEMS )) { for (Bundlable item : bundle.getCollection( ITEMS )) {
((Item)item).collect( this ); if (item != null) ((Item)item).collect( this );
}; };
} }