From 3e8041d54bc87b5dd8eae5e260e1fe1985ea1dd4 Mon Sep 17 00:00:00 2001 From: uruk Date: Wed, 13 Aug 2014 17:43:52 +0200 Subject: CGE2: Fix comparing _spr->file against null in runCommand(). --- engines/cge2/snail.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/cge2/snail.cpp b/engines/cge2/snail.cpp index 2cd5aca493..0bf63839e9 100644 --- a/engines/cge2/snail.cpp +++ b/engines/cge2/snail.cpp @@ -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 -- cgit v1.2.3