summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2004-12-26 19:18:45 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2004-12-26 19:18:45 +0000
commit372ad56db38ded14454f093e4edba7ec98d48254 (patch)
tree7f340b36495615100d2dd86e0fa25b96c5da0199
parent251031b790ebc5cd677315174d4e46bc4e287718 (diff)
downloadmana-372ad56db38ded14454f093e4edba7ec98d48254.tar.gz
mana-372ad56db38ded14454f093e4edba7ec98d48254.tar.bz2
mana-372ad56db38ded14454f093e4edba7ec98d48254.tar.xz
mana-372ad56db38ded14454f093e4edba7ec98d48254.zip
Some more Xmas fixes
-rw-r--r--The Mana World.dev2
-rw-r--r--src/gui/shop.cpp5
2 files changed, 4 insertions, 3 deletions
diff --git a/The Mana World.dev b/The Mana World.dev
index 88160dd2..274f4af8 100644
--- a/The Mana World.dev
+++ b/The Mana World.dev
@@ -33,7 +33,7 @@ CompilerSettings=0010001001001000001101
Major=0
Minor=0
Release=8
-Build=641
+Build=645
LanguageID=1033
CharsetID=1252
CompanyName=The Mana World Development Team
diff --git a/src/gui/shop.cpp b/src/gui/shop.cpp
index 0220ad67..acf5eda9 100644
--- a/src/gui/shop.cpp
+++ b/src/gui/shop.cpp
@@ -22,6 +22,7 @@
*/
#include "shop.h"
+#include "../graphic/graphic.h"
int n_items;
char* selectedItem = "You got 4";
@@ -69,8 +70,8 @@ void add_buy_item(short id, int price) {
void add_sell_item(short index, int price) {
int id = inventory.items[index].id;
ITEM_SHOP *item_shop = (ITEM_SHOP *)malloc(sizeof(ITEM_SHOP));
- if(id-501>=0 && id-501<=2)
- sprintf(item_shop->name, "%s %i gp", item_db[id-501], price);
+ if(id>=501 && id<=511)
+ sprintf(item_shop->name, "%s %i gp", item_db[id-501], price);
else
sprintf(item_shop->name, "Unknown item %i gp", price);
item_shop->price = price;