aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2005-04-14 11:33:12 +0000
committerTravis Howell2005-04-14 11:33:12 +0000
commit7a30956dcd083d67be77e75426939057306d2983 (patch)
tree2c2ab84f9831aae10552db29ae16f8781ade7bed
parent5ddb09fecb304526f89b8e85e5b42928d342a2be (diff)
downloadscummvm-rg350-7a30956dcd083d67be77e75426939057306d2983.tar.gz
scummvm-rg350-7a30956dcd083d67be77e75426939057306d2983.tar.bz2
scummvm-rg350-7a30956dcd083d67be77e75426939057306d2983.zip
Add missing safety check, needed when called directly.
Fixes assert in eggs away of farm. svn-id: r17599
-rw-r--r--scumm/actor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/scumm/actor.cpp b/scumm/actor.cpp
index 00ebacd764..af5aa71b17 100644
--- a/scumm/actor.cpp
+++ b/scumm/actor.cpp
@@ -1022,6 +1022,9 @@ void ScummEngine::processUpperActors() {
}
void Actor::drawActorCostume(bool hitTestMode) {
+ if (_costume == 0)
+ return;
+
if (!hitTestMode) {
if (!_needRedraw)
return;