mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
CGE2: Fix comparing _spr->file against null in runCommand().
This commit is contained in:
parent
3b342a21c6
commit
3e8041d54b
@ -103,7 +103,7 @@ void CommandHandler::runCommand() {
|
||||
spr = (tailCmd._ref < 0) ? ((Sprite *)tailCmd._spritePtr) : _vm->locate(tailCmd._ref);
|
||||
|
||||
Common::String sprStr;
|
||||
if (spr && spr->_file && (tailCmd._commandType != kCmdGhost))
|
||||
if (spr && *spr->_file && (tailCmd._commandType != kCmdGhost))
|
||||
// In case of kCmdGhost _spritePtr stores a pointer to a Bitmap, not to a Sprite...
|
||||
sprStr = Common::String(spr->_file);
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user