From 8188251c35d3c732c74775f2dae6442b9cefbdc0 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 17 Sep 2015 21:06:44 -0400 Subject: SHERLOCK: RT: Fix crash clicking outside cards in card game --- engines/sherlock/tattoo/tattoo_people.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/sherlock/tattoo') diff --git a/engines/sherlock/tattoo/tattoo_people.cpp b/engines/sherlock/tattoo/tattoo_people.cpp index fe60189965..46d91cead8 100644 --- a/engines/sherlock/tattoo/tattoo_people.cpp +++ b/engines/sherlock/tattoo/tattoo_people.cpp @@ -874,8 +874,8 @@ Common::Point TattooPerson::getSourcePoint() const { TattooScene &scene = *(TattooScene *)_vm->_scene; int scaleVal = scene.getScaleVal(_position); - return Common::Point(_position.x / FIXED_INT_MULTIPLIER + _imageFrame->sDrawXSize(scaleVal) / 2, - _position.y / FIXED_INT_MULTIPLIER); + return Common::Point(_position.x / FIXED_INT_MULTIPLIER + + (_imageFrame ? _imageFrame->sDrawXSize(scaleVal) / 2 : 0), _position.y / FIXED_INT_MULTIPLIER); } void TattooPerson::setObjTalkSequence(int seq) { -- cgit v1.2.3