Permalink
Browse files

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

  • Loading branch information...
MiroslavR authored and sev- committed Jul 21, 2018
1 parent 9aa9113 commit 96fbe2f8817303e25e0436641e23b0f7b4275658
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 96fbe2f

Please sign in to comment.