summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2005-08-22 21:57:34 +0000
committerYohann Ferreira <bertram@cegetel.net>2005-08-22 21:57:34 +0000
commit097ef85eed1e7ea957f3204f4601a2ae63ba20f7 (patch)
tree09df7e7f087968aed4b2b7dc94d8a03ff3114e18 /src/game.cpp
parent59618657040cac0ccf2be7c39bbdfc0c15f6b40c (diff)
downloadmana-097ef85eed1e7ea957f3204f4601a2ae63ba20f7.tar.gz
mana-097ef85eed1e7ea957f3204f4601a2ae63ba20f7.tar.bz2
mana-097ef85eed1e7ea957f3204f4601a2ae63ba20f7.tar.xz
mana-097ef85eed1e7ea957f3204f4601a2ae63ba20f7.zip
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.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp2
1 files changed, 2 insertions, 0 deletions
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;