Fix for a rare case where the NPC handler for Ewan the shopkeeper can cause an assert when you rejoin Goewin in the Weregate caves.

svn-id: r47197
This commit is contained in:
Paul Gilbert 2010-01-09 09:27:40 +00:00
parent 30e360f5c5
commit e27ef211f8

View File

@ -3810,6 +3810,7 @@ void HotspotTickHandlers::barmanAnimHandler(Hotspot &h) {
HotspotData *wayne = res.getHotspot(WAYNE_ID);
if ((player->roomNumber != 35) && (gwyn->roomNumber != 35) && (wayne->roomNumber != 35)) {
h.setAnimationIndex(EWAN_ANIM_INDEX);
if (rnd.getRandomNumber(1) == 1)
id = BG_EXTRA1 << 8;
else {