From fb2c5bebc4fffe56770b8c3e19cac9918cc9feae Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Sun, 18 Apr 2004 21:45:13 +0000 Subject: [PATCH] - removed static_cast hack SVN-Revision: 563 --- src/leveleditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/leveleditor.cpp b/src/leveleditor.cpp index 3173e9a20..7d0346ea6 100644 --- a/src/leveleditor.cpp +++ b/src/leveleditor.cpp @@ -1139,7 +1139,7 @@ void le_change(float x, float y, int tm, unsigned int c) /* if there is a bad guy over there, remove it */ for(i = 0; i < le_world.bad_guys.size(); ++i) if(xx == le_world.bad_guys[i].base.x/32 && yy == le_world.bad_guys[i].base.y/32) - le_world.bad_guys.erase(static_cast::iterator>(&le_world.bad_guys[i])); + le_world.bad_guys.erase(le_world.bad_guys.begin() + i); if(c == '0') /* if it's a bad guy */ le_world.add_bad_guy(xx*32, yy*32, BAD_BSOD); -- 2.11.0