aboutsummaryrefslogtreecommitdiff
path: root/saga/interface.h
diff options
context:
space:
mode:
authorAndrew Kurushin2005-05-12 15:11:32 +0000
committerAndrew Kurushin2005-05-12 15:11:32 +0000
commit91ff7f7a31e18a42438d08aaea515c38bb319755 (patch)
treecb1f1b5b620f3666e4de0ee434be50cbd7f9d3d4 /saga/interface.h
parentb3ec4726391e80be92e6faff68be5e5de495d29a (diff)
downloadscummvm-rg350-91ff7f7a31e18a42438d08aaea515c38bb319755.tar.gz
scummvm-rg350-91ff7f7a31e18a42438d08aaea515c38bb319755.tar.bz2
scummvm-rg350-91ff7f7a31e18a42438d08aaea515c38bb319755.zip
fixed interpreter bug (negative address offset - may crush system)
implemented inventory save-load svn-id: r18071
Diffstat (limited to 'saga/interface.h')
-rw-r--r--saga/interface.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/saga/interface.h b/saga/interface.h
index ea0d31f4c0..c01d179dd5 100644
--- a/saga/interface.h
+++ b/saga/interface.h
@@ -174,7 +174,7 @@ public:
updateInventory(_inventoryCount);
draw();
}
- void addToInventory(int objectId, int pos = -1);
+ void addToInventory(int objectId);
void removeFromInventory(int objectId);
void clearInventory();
int inventoryItemPosition(int objectId);
@@ -189,6 +189,8 @@ public:
PanelButton *inventoryHitTest(const Point& mousePoint) {
return _mainPanel.hitTest(mousePoint, kPanelButtonInventory);
}
+ void saveState(Common::File& out);
+ void loadState(Common::File& in);
private:
PanelButton *verbHitTest(const Point& mousePoint);
void handleCommandUpdate(const Point& mousePoint);