mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
make gui work if the requested string vars don't exist
svn-id: r7674
This commit is contained in:
parent
6cb61537f4
commit
714cd3503d
@ -1268,7 +1268,10 @@ byte *Scumm::getStringAddressVar(int i) {
|
||||
|
||||
addr = getResourceAddress(rtString, _scummVars[i]);
|
||||
if (addr == NULL)
|
||||
error("NULL string var %d slot %d", i, _scummVars[i]);
|
||||
// as this is used for string mapping in the gui
|
||||
// it must be allowed to return NULL
|
||||
// error("NULL string var %d slot %d", i, _scummVars[i]);
|
||||
return NULL;
|
||||
|
||||
if (_features & GF_NEW_OPCODES)
|
||||
return ((ArrayHeader *)addr)->data;
|
||||
|
Loading…
x
Reference in New Issue
Block a user