diff options
author | Filippos Karapetis | 2011-11-05 13:07:09 +0200 |
---|---|---|
committer | Filippos Karapetis | 2011-11-05 13:08:42 +0200 |
commit | 5969c6bd2e141799d35d68559b9222772917e950 (patch) | |
tree | b4e0e69e51d357e678db7f0cb949da2e52539e63 /engines/sci/engine/script.h | |
parent | 3e98c563770bdfde049c0f74871d606be3b9698e (diff) | |
download | scummvm-rg350-5969c6bd2e141799d35d68559b9222772917e950.tar.gz scummvm-rg350-5969c6bd2e141799d35d68559b9222772917e950.tar.bz2 scummvm-rg350-5969c6bd2e141799d35d68559b9222772917e950.zip |
SCI: Updated Script::getObjectMap()
It now returns a reference to the object list instead of copying it
Diffstat (limited to 'engines/sci/engine/script.h')
-rw-r--r-- | engines/sci/engine/script.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/script.h b/engines/sci/engine/script.h index 8c5495d852..90a7c7a11e 100644 --- a/engines/sci/engine/script.h +++ b/engines/sci/engine/script.h @@ -87,7 +87,7 @@ public: SegmentId getLocalsSegment() const { return _localsSegment; } reg_t *getLocalsBegin() { return _localsBlock ? _localsBlock->_locals.begin() : NULL; } void syncLocalsBlock(SegManager *segMan); - ObjMap getObjectMap() const { return _objects; } + ObjMap &getObjectMap() { return _objects; } public: Script(); |