ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/util.h
(Generate patch)

Comparing deliantra/server/include/util.h (file contents):
Revision 1.38 by root, Thu Feb 15 18:09:34 2007 UTC vs.
Revision 1.39 by pippijn, Thu Mar 1 12:28:16 2007 UTC

399 } 399 }
400 400
401 void erase (T *obj) 401 void erase (T *obj)
402 { 402 {
403 assert (obj->*index); 403 assert (obj->*index);
404 int pos = obj->*index; 404 unsigned int pos = obj->*index;
405 obj->*index = 0; 405 obj->*index = 0;
406 406
407 if (pos < this->size ()) 407 if (pos < this->size ())
408 { 408 {
409 (*this)[pos - 1] = (*this)[this->size () - 1]; 409 (*this)[pos - 1] = (*this)[this->size () - 1];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines