Skip to content

Commit

Permalink
SHERLOCK: RT: Fix crash clicking outside cards in card game
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Sep 18, 2015
1 parent d227e40 commit 8188251
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/sherlock/tattoo/tattoo_people.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit 8188251

Please sign in to comment.