summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-25 11:57:25 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-25 11:57:25 +0000
commit8c6d13d14f3108bd6e1135b25831041b51fc397c (patch)
treedc07b16b4b5382123011b0f3261000a031fff058
parent962aae8bbd272d60d2a6fa0d8da50b0cb4e7c6a9 (diff)
downloadmana-8c6d13d14f3108bd6e1135b25831041b51fc397c.tar.gz
mana-8c6d13d14f3108bd6e1135b25831041b51fc397c.tar.bz2
mana-8c6d13d14f3108bd6e1135b25831041b51fc397c.tar.xz
mana-8c6d13d14f3108bd6e1135b25831041b51fc397c.zip
Excuse me, but indeed freeing the item name is giving problems...
-rw-r--r--src/gui/npc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/npc.cpp b/src/gui/npc.cpp
index 32f0506e..a5089123 100644
--- a/src/gui/npc.cpp
+++ b/src/gui/npc.cpp
@@ -45,7 +45,7 @@ void add_item(char *name) {
}
void remove_tail() {
- free(items.back()->name);
+ //free(items.back()->name);
free(items.back());
items.pop_back();
}
@@ -67,7 +67,7 @@ void parse_items(char *string, short len) {
void remove_all_items() {
int i;
for (i = 0; i < items.size(); i++) {
- free(items[i]->name);
+ //free(items[i]->name);
free(items[i]);
}
items.clear();