]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/pouch.cpp
added items to the tavern.dat, added the filename option to the config file
[irc/gameservirc.git] / gameserv / pouch.cpp
index 4c1b68cc2a11e825806d8346cbbb74dfda835ca9..51306843c0792760e8b35b6ba0f4392fe6648a0f 100644 (file)
@@ -1,5 +1,7 @@
 #include "pouch.h"
 #include "item.h"
+#include <list>
+#include <algorithm>
 
 pouch::pouch()
 {
@@ -58,10 +60,11 @@ itemContainer *pouch::Find(string &n)
   return NULL;
 }
 
-void pouch::addItem(item *i)
+itemContainer *pouch::addItem(item *i)
 {
   itemContainer it(i);
   items.push_front(it);
+  return &items.front();
 }
 
 void pouch::deleteItem(item *i)