aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/advsys/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/glk/advsys/game.cpp')
-rw-r--r--engines/glk/advsys/game.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/glk/advsys/game.cpp b/engines/glk/advsys/game.cpp
index a20178d9e2..22b1d11476 100644
--- a/engines/glk/advsys/game.cpp
+++ b/engines/glk/advsys/game.cpp
@@ -220,13 +220,15 @@ int Game::getObjectProperty(int obj, int prop) {
return NIL;
}
-void Game::setObjectProperty(int obj, int prop, int val) {
+int Game::setObjectProperty(int obj, int prop, int val) {
int field;
for (; obj; obj = getObjectField(obj, O_CLASS)) {
if ((field = findProperty(obj, prop)) != 0)
return setObjectField(obj, field, val);
}
+
+ return NIL;
}
int Game::getObjectLocation(int obj) const {