mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
c2d82a9ad6
Submitted by: Simon Barner <barner@in.tum.de>
20 lines
492 B
C++
20 lines
492 B
C++
--- ./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;
|
|
}
|