v0.4.3a: stopped the game attempting to load items dropped into pits that didn't exist

This commit is contained in:
Evan Debenham 2016-10-19 18:34:53 -04:00
parent ed21521670
commit 509f10a12c

View File

@ -614,6 +614,7 @@ public class Dungeon {
droppedItems = new SparseArray<ArrayList<Item>>(); droppedItems = new SparseArray<ArrayList<Item>>();
for (int i=2; i <= Statistics.deepestFloor + 1; i++) { for (int i=2; i <= Statistics.deepestFloor + 1; i++) {
ArrayList<Item> dropped = new ArrayList<Item>(); ArrayList<Item> dropped = new ArrayList<Item>();
if (bundle.contains(Messages.format( DROPPED, i )))
for (Bundlable b : bundle.getCollection( Messages.format( DROPPED, i ) ) ) { for (Bundlable b : bundle.getCollection( Messages.format( DROPPED, i ) ) ) {
dropped.add( (Item)b ); dropped.add( (Item)b );
} }