CGE2: Fix comparing _spr->file against null in runCommand().

This commit is contained in:
uruk 2014-08-13 17:43:52 +02:00
parent 3b342a21c6
commit 3e8041d54b

View File

@ -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