summaryrefslogtreecommitdiff
path: root/src/gui/shop.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2004-11-13 16:47:56 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2004-11-13 16:47:56 +0000
commit795552b239069ad77d63b47fddc6b1ef435fb987 (patch)
tree7fd67c247c85135337ac84ffb0e22554711b901c /src/gui/shop.cpp
parent33c5262ed04f5a69b24618b8fe49b8e83904f373 (diff)
downloadmana-795552b239069ad77d63b47fddc6b1ef435fb987.tar.gz
mana-795552b239069ad77d63b47fddc6b1ef435fb987.tar.bz2
mana-795552b239069ad77d63b47fddc6b1ef435fb987.tar.xz
mana-795552b239069ad77d63b47fddc6b1ef435fb987.zip
Hair styles
Diffstat (limited to 'src/gui/shop.cpp')
-rw-r--r--src/gui/shop.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/shop.cpp b/src/gui/shop.cpp
index e929f434..5413e472 100644
--- a/src/gui/shop.cpp
+++ b/src/gui/shop.cpp
@@ -30,7 +30,7 @@ char* selectedItem = "You got 4";
ITEM_SHOP *shop = NULL;
char *item_db[] = {
- "Candy", "Medical Herb", "Chocolate", "Royal Jam", "Faerie Walnut",
+ "Cactus Drink", "Cactus potion", "Casino coins", "Royal Jam", "Faerie Walnut",
"Cup of wishes", "Magic rope", "Midge mallet", "Flammie drum", "Moogle belt"
};
@@ -118,7 +118,8 @@ int get_item_quantity(int index) {
item_shop = item_shop->next;
iterator++;
}
- return item_shop->quantity;
+ if(item_shop)return item_shop->quantity;
+ else return 0;
}
int get_item_index(int index) {