aboutsummaryrefslogtreecommitdiff
path: root/engines/mutationofjb/commands
diff options
context:
space:
mode:
authorMiroslav Remák2018-07-21 13:05:38 +0200
committerEugene Sandulenko2018-08-25 23:12:01 +0200
commit96fbe2f8817303e25e0436641e23b0f7b4275658 (patch)
tree41bd4cd9c69c5c2cd3e603fc279bb08853781677 /engines/mutationofjb/commands
parent9aa911314fb54e71b9b37b8787626d25afbcd289 (diff)
downloadscummvm-rg350-96fbe2f8817303e25e0436641e23b0f7b4275658.tar.gz
scummvm-rg350-96fbe2f8817303e25e0436641e23b0f7b4275658.tar.bz2
scummvm-rg350-96fbe2f8817303e25e0436641e23b0f7b4275658.zip
MUTATIONOFJB: Fix crash when static/door name is set to empty string.
Diffstat (limited to 'engines/mutationofjb/commands')
-rw-r--r--engines/mutationofjb/commands/changecommand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mutationofjb/commands/changecommand.cpp b/engines/mutationofjb/commands/changecommand.cpp
index d7a8f9ca4b..4eac41e619 100644
--- a/engines/mutationofjb/commands/changecommand.cpp
+++ b/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;