From 2934585e210d7021ed22f361d3d43b79c2b106d4 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Wed, 24 Jun 2015 01:43:27 -0400 Subject: [PATCH] Fix crash when initiating conversation via special node --- src/boe.newgraph.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/boe.newgraph.cpp b/src/boe.newgraph.cpp index b0c454316..8cd5caaed 100644 --- a/src/boe.newgraph.cpp +++ b/src/boe.newgraph.cpp @@ -844,10 +844,10 @@ static void place_talk_face() { cPict::drawAt(mainPtr, face_rect, store_talk_face_pic, PIC_CUSTOM_TALK, false); } else { - short i = get_monst_picnum(store_monst_type); - if(face_to_draw == NO_PIC) + if(face_to_draw == NO_PIC) { + short i = get_monst_picnum(store_monst_type); cPict::drawAt(mainPtr, face_rect, i, get_monst_pictype(store_monst_type), false); - else cPict::drawAt(mainPtr, face_rect, face_to_draw, PIC_TALK, false); + } else cPict::drawAt(mainPtr, face_rect, face_to_draw, PIC_TALK, false); } }