I just tried doing that in codeblocks and for a while it temporarily solved the problem (thanks for the tip!) but then it happened again after a little more gameplay, the error message pointing to a different line of code - I'm sorry, but I don't have a screenshot of the second time it occurred.
Seems the SVN versions for some time have been rather unstable for me when loading a saved game, although I start over when grabbing updates and recompiling to avoid revision issues with the saved games. I'll say this though - when it works the SVN version is quite impressive, much better IMO than the 2.2.x versions.
Thanks again for the tip, it makes the SVN version relatively more stable.
While on the topic of bugs, I also saw a very old graphic for the shotgun in the UFOPedia, one that didn't look like the model currently used in the game for the riot shotgun.