Changeset 386:6daf48763bc0


Ignore:
Timestamp:
Sep 6, 2013, 9:59:49 PM (7 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Message:

Don't crash if we have an out of date saved state

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/world.py

    r375 r386  
    7171            data = load(f)
    7272        data['inventory'] = set(data['inventory'])
    73         self.__dict__['_data'] = data
     73        self.__dict__['_data'].update(data)
    7474        return True
    7575
Note: See TracChangeset for help on using the changeset viewer.