v0.4.3a: stopped the game attempting to load items dropped into pits that didn't exist
This commit is contained in:
@@ -614,9 +614,10 @@ public class Dungeon {
|
||||
droppedItems = new SparseArray<ArrayList<Item>>();
|
||||
for (int i=2; i <= Statistics.deepestFloor + 1; i++) {
|
||||
ArrayList<Item> dropped = new ArrayList<Item>();
|
||||
for (Bundlable b : bundle.getCollection( Messages.format( DROPPED, i ) ) ) {
|
||||
dropped.add( (Item)b );
|
||||
}
|
||||
if (bundle.contains(Messages.format( DROPPED, i )))
|
||||
for (Bundlable b : bundle.getCollection( Messages.format( DROPPED, i ) ) ) {
|
||||
dropped.add( (Item)b );
|
||||
}
|
||||
if (!dropped.isEmpty()) {
|
||||
droppedItems.put( i, dropped );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user