af2e4fcb7a
PR: 201842 Submitted by: tkato432@yahoo.com
17 lines
516 B
C
17 lines
516 B
C
--- src/LocationList.h.orig 2010-05-11 08:50:34 UTC
|
|
+++ src/LocationList.h
|
|
@@ -74,8 +74,14 @@
|
|
for (int j = 0; j < s; j++)
|
|
{
|
|
Vector<int> pos = t->getPos() + Vector<int>(i,j);
|
|
+#if defined(_LIBCPP_VERSION)
|
|
+ typename PositionMap::const_iterator it = d_object.find(pos);
|
|
+ if (it != d_object.end())
|
|
+ d_object.erase(it);
|
|
+#else
|
|
if (d_object.find(pos) != d_object.end())
|
|
d_object.erase(d_object.find(pos));
|
|
+#endif
|
|
}
|
|
delete t;
|
|
}
|