Ferocca
Warlord
- Joined
- Nov 21, 2011
- Messages
- 179
I was about to release my mod after testing, but there suddenly was a bug - when loading a save, the game exits with a 'bad allocation' error message. The strange thing is that as long as you don't load anything, everything works perfectly.
I have a backup of my source files from before the bug. The bug must be caused by my newest code; which allows hurrying projects IF you have a building in your city that enables project hurrying. Everything works when it comes to project hurrying as well. The DLL builds without any warnings (or errors of course). That's why it's a mystery to me why it causes a bug, but the exact same DLL without this new component does not have this loading bug.
When I use a DebugDLL, it refers me to place that makes it even more of a mystery to me:
In CvCity.ccp:
pStream->Read(MAX_TEAMS, m_abEspionageVisibility);
I did not change anything regarding m_abEspionageVisibility.
Does anyone know what could have caused this? If you need more information it of course is no problem for me to provide it.
I have a backup of my source files from before the bug. The bug must be caused by my newest code; which allows hurrying projects IF you have a building in your city that enables project hurrying. Everything works when it comes to project hurrying as well. The DLL builds without any warnings (or errors of course). That's why it's a mystery to me why it causes a bug, but the exact same DLL without this new component does not have this loading bug.
When I use a DebugDLL, it refers me to place that makes it even more of a mystery to me:
In CvCity.ccp:
pStream->Read(MAX_TEAMS, m_abEspionageVisibility);
I did not change anything regarding m_abEspionageVisibility.
Does anyone know what could have caused this? If you need more information it of course is no problem for me to provide it.