]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/listnode.h
added items to the tavern.dat, added the filename option to the config file
[irc/gameservirc.git] / gameserv / listnode.h
index feb6641f494b4b3178809307eaa6194c6a0a575b..a18f21ed4a38033c6b34befd067120404403b81b 100644 (file)
@@ -11,6 +11,7 @@ class ListNode {
        friend class List<T>;
     public:
        ListNode(const T &);
+       ListNode(T &);
        T *getData();
        void setData(const T &);
        void setPtr( T * );
@@ -30,6 +31,13 @@ ListNode<T>::ListNode(const T &info)
   prev = NULL;
   data = new T(info); 
 }
+template <class T>
+ListNode<T>::ListNode(T &info) 
+{
+  next = NULL;
+  prev = NULL;
+  data = new T(info); 
+}
 
 template <class T>
 T *ListNode<T>::getData() { return data; }