aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruruk2014-08-13 17:43:52 +0200
committeruruk2014-08-13 17:43:52 +0200
commit3e8041d54bc87b5dd8eae5e260e1fe1985ea1dd4 (patch)
tree740ce9824f2ab08803a260767733e9a95c9e03ce
parent3b342a21c61010698e6b4829ed80857f06904ad9 (diff)
downloadscummvm-rg350-3e8041d54bc87b5dd8eae5e260e1fe1985ea1dd4.tar.gz
scummvm-rg350-3e8041d54bc87b5dd8eae5e260e1fe1985ea1dd4.tar.bz2
scummvm-rg350-3e8041d54bc87b5dd8eae5e260e1fe1985ea1dd4.zip
CGE2: Fix comparing _spr->file against null in runCommand().
-rw-r--r--engines/cge2/snail.cpp2
1 files changed, 1 insertions, 1 deletions
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