diff options
-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)); } |