aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorEugene Sandulenko2016-09-04 21:18:47 +0200
committerEugene Sandulenko2016-09-04 21:20:29 +0200
commitbbdae9120e661a36254c5c6f171e89c973d58bc8 (patch)
tree9a1539daca6d75cb8c961ae41e7a2cd71dc92ec5 /engines/fullpipe
parente49728fc1fd100162ca0d9fa02a9a86bb5705c59 (diff)
downloadscummvm-rg350-bbdae9120e661a36254c5c6f171e89c973d58bc8.tar.gz
scummvm-rg350-bbdae9120e661a36254c5c6f171e89c973d58bc8.tar.bz2
scummvm-rg350-bbdae9120e661a36254c5c6f171e89c973d58bc8.zip
FULLPIPE: Properly initialize ObjstateCommand. This fixes game logic transitions
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/messages.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/fullpipe/messages.cpp b/engines/fullpipe/messages.cpp
index 147a35cbd7..e9b2c40299 100644
--- a/engines/fullpipe/messages.cpp
+++ b/engines/fullpipe/messages.cpp
@@ -233,11 +233,13 @@ Message::Message(int16 parentId, int messageKind, int x, int y, int a6, int a7,
ObjstateCommand::ObjstateCommand() {
_value = 0;
_objCommandName = 0;
+ _objtype = kObjTypeObjstateCommand;
}
ObjstateCommand::ObjstateCommand(ObjstateCommand *src) : ExCommand(src) {
_value = src->_value;
_objCommandName = (char *)calloc(strlen(src->_objCommandName) + 1, 1);
+ _objtype = kObjTypeObjstateCommand;
strncpy(_objCommandName, src->_objCommandName, strlen(src->_objCommandName));
}