diff options
| author | uruk | 2014-08-13 17:43:52 +0200 | 
|---|---|---|
| committer | uruk | 2014-08-13 17:43:52 +0200 | 
| commit | 3e8041d54bc87b5dd8eae5e260e1fe1985ea1dd4 (patch) | |
| tree | 740ce9824f2ab08803a260767733e9a95c9e03ce | |
| parent | 3b342a21c61010698e6b4829ed80857f06904ad9 (diff) | |
| download | scummvm-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.cpp | 2 | 
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 | 
