diff options
author | Robert Crossfield | 2012-01-31 07:42:38 +1100 |
---|---|---|
committer | Tobias Gunkel | 2012-02-11 08:29:59 +0100 |
commit | a8008e0a717fd2bb1d697f04c1901397deabe958 (patch) | |
tree | e16163dc09914fac5d02e7ac4fb6f9cf63167954 | |
parent | 92908bfc4b461dad5cf5811a0d3c167827ddf3b1 (diff) | |
download | scummvm-rg350-a8008e0a717fd2bb1d697f04c1901397deabe958.tar.gz scummvm-rg350-a8008e0a717fd2bb1d697f04c1901397deabe958.tar.bz2 scummvm-rg350-a8008e0a717fd2bb1d697f04c1901397deabe958.zip |
SCUMM: Fix if there is no costume set
-rw-r--r-- | engines/scumm/costume.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/scumm/costume.cpp b/engines/scumm/costume.cpp index e3a2203adc..b2ad4b9b33 100644 --- a/engines/scumm/costume.cpp +++ b/engines/scumm/costume.cpp @@ -1285,6 +1285,9 @@ void C64CostumeLoader::loadCostume(int id) { void C64CostumeLoader::costumeDecodeData(Actor *a, int frame, uint usemask) { ActorC64 *A = (ActorC64 *)a; + if(!a->_costume) + return; + loadCostume(a->_costume); // Invalid costume command? |