Permalink
Browse files

MUTATIONOFJB: Fix crash when static/door name is set to empty string.

  • Loading branch information...
MiroslavR authored and LubomirR committed Jul 21, 2018
1 parent 9c8c492 commit e1253ef06a58aa7a9b605583fc4f5e80a439d7d3
Showing with 1 addition and 1 deletion.
  1. +1 −1 engines/mutationofjb/commands/changecommand.cpp
@@ -52,7 +52,7 @@ bool ChangeCommandParser::parseValueString(const Common::String &valueString, bo
if (changeEntity) {
entityId = atoi(valueString.c_str() + 6);
}
const char *val = nullptr;
const char *val = "";
if (changeEntity) {
if (valueString.size() >= 9) {
val = valueString.c_str() + 9;

0 comments on commit e1253ef

Please sign in to comment.