From 097ef85eed1e7ea957f3204f4601a2ae63ba20f7 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Mon, 22 Aug 2005 21:57:34 +0000 Subject: Converted the buy & sell diaogs asserts into ifs to avoid game crashing, and made additional checks on buy sell events to have buttons enabled only when they're useful. --- src/game.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index a0f2a518..05c5f13b 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1574,7 +1574,9 @@ void do_parse() // Buy/Sell dialog case 0x00c4: buyDialog->setVisible(false); + buyDialog->reset(); sellDialog->setVisible(false); + sellDialog->reset(); buySellDialog->setVisible(true); current_npc = RFIFOL(2); break; -- cgit v1.2.3-70-g09d2