Actually iterate the dictionary correctly.

This commit is contained in:
CaitSith2
2020-10-14 20:33:12 -07:00
parent 99e21a68fb
commit 4e0a2ad696

View File

@@ -499,7 +499,7 @@ def roll_settings(weights):
if (not ret.sprite_pool or get_choice('use_weighted_sprite_pool', randomoneventweights, False)) \
and 'sprite' in romweights: # Use sprite as a weighted sprite pool, if a sprite pool is not already defined.
for key, value in romweights['sprite']:
for key, value in romweights['sprite'].items():
if key.startswith('random'):
ret.sprite_pool += ['random'] * int(value)
else: