From: Ingo Ruhnke Date: Sun, 18 Apr 2004 21:45:13 +0000 (+0000) Subject: - removed static_cast hack X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=fb2c5bebc4fffe56770b8c3e19cac9918cc9feae;p=supertux.git - removed static_cast hack SVN-Revision: 563 --- 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);