I don't know if my configuration specifically was causing the crash, but this fixes it (erase returns the iter after listIt, so effectively already incremented for you).
I assume this is fine for such a small change, do you use the sf.net patch tool otherwise?
Code: Select all
c:\Users\tom\code\bz\bzflag\bzflag>svn diff src
Index: src/bzfs/WorldEventManager.cxx
===================================================================
--- src/bzfs/WorldEventManager.cxx (revision 20236)
+++ src/bzfs/WorldEventManager.cxx (working copy)
@@ -83,7 +83,8 @@
listIt = evList.erase(listIt);
foundOne = true;
}
- listIt++;
+ else
+ listIt++;
}
}