From 7a30956dcd083d67be77e75426939057306d2983 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Thu, 14 Apr 2005 11:33:12 +0000 Subject: Add missing safety check, needed when called directly. Fixes assert in eggs away of farm. svn-id: r17599 --- scumm/actor.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3