diff options
author | Colin Snover | 2017-12-19 19:27:13 -0600 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-18 16:30:05 +0200 |
commit | 481b608c51858d0b6afc3cfb461664fc9575c6a0 (patch) | |
tree | 984187ecdb5246049f02a7e46aa802739fedd93e /engines/parallaction/parallaction_br.cpp | |
parent | bc3c8bd8d251b7a0631e1993e6365719382eacf6 (diff) | |
download | scummvm-rg350-481b608c51858d0b6afc3cfb461664fc9575c6a0.tar.gz scummvm-rg350-481b608c51858d0b6afc3cfb461664fc9575c6a0.tar.bz2 scummvm-rg350-481b608c51858d0b6afc3cfb461664fc9575c6a0.zip |
PARALLACTION: Replace use of strdup with Common::String & malloc
Diffstat (limited to 'engines/parallaction/parallaction_br.cpp')
-rw-r--r-- | engines/parallaction/parallaction_br.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/parallaction/parallaction_br.cpp b/engines/parallaction/parallaction_br.cpp index 9f045cb397..316e38819a 100644 --- a/engines/parallaction/parallaction_br.cpp +++ b/engines/parallaction/parallaction_br.cpp @@ -430,8 +430,8 @@ void Parallaction_br::parseLocation(const char *filename) { restoreOrSaveZoneFlags(*ait, visited); // load the script - if ((*ait)->_scriptName) { - loadProgram(*ait, (*ait)->_scriptName); + if (!(*ait)->_scriptName.empty()) { + loadProgram(*ait, (*ait)->_scriptName.c_str()); } } |