diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2006-08-04 07:20:52 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2006-08-04 07:20:52 +0000 |
commit | 1ca7028c99319e5dc04cb34c1839b04e3de045f2 (patch) | |
tree | 89347a05dd31ede185210b0a48893431250a1a29 /src/object.cpp | |
parent | 0c0966322b3018fa5fe3be3f52eef867da6ec779 (diff) | |
download | manaserv-1ca7028c99319e5dc04cb34c1839b04e3de045f2.tar.gz manaserv-1ca7028c99319e5dc04cb34c1839b04e3de045f2.tar.bz2 manaserv-1ca7028c99319e5dc04cb34c1839b04e3de045f2.tar.xz manaserv-1ca7028c99319e5dc04cb34c1839b04e3de045f2.zip |
Added unique ID to Player class.
Diffstat (limited to 'src/object.cpp')
-rw-r--r-- | src/object.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/object.cpp b/src/object.cpp index cab2622e..5c03981a 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -20,5 +20,12 @@ * $Id$ */ +#include <cassert> #include "object.h" + +void Object::setID(int id) +{ + assert(mID < 0); + mID = id; +} |