blob: e24a6a1585f08ab9887e4af5ac9ccb1f7eb8f219 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- ./src/ObjEdit/ObjectCollection.cpp.orig Mon Jul 21 18:47:55 2003
+++ ./src/ObjEdit/ObjectCollection.cpp Mon Jul 21 19:44:26 2003
@@ -326,11 +326,14 @@
UniqueId ObjectCollection::getUniqueId(const string& name) const
{
IdTable::const_iterator iter = nameToId.find(name);
- if ( iter != objects.end() )
+
+ //if (iter != objects.end() )
+ // Is this correct? 21.7.03, barner@in.tum.de
+ if (iter != nameToId.end())
{
return (*iter).second;
}
- else
+ else
{
return -1;
}
|