freebsd-ports/games/lordsawar/files/patch-src__LocationList.h
Pawel Pekala af2e4fcb7a Update to version 0.3.0
PR:		201842
Submitted by:	tkato432@yahoo.com
2015-11-24 21:27:02 +00:00

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;
}