diff options
author | Eugene Sandulenko | 2016-09-04 21:18:47 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-04 21:20:29 +0200 |
commit | bbdae9120e661a36254c5c6f171e89c973d58bc8 (patch) | |
tree | 9a1539daca6d75cb8c961ae41e7a2cd71dc92ec5 /engines/fullpipe | |
parent | e49728fc1fd100162ca0d9fa02a9a86bb5705c59 (diff) | |
download | scummvm-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.cpp | 2 |
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)); } |