summaryrefslogtreecommitdiff
path: root/src/object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/object.cpp')
-rw-r--r--src/object.cpp7
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;
+}