Why does this statement crash?

Leoreth

Bofurin
Retired Moderator
Joined
Aug 23, 2009
Messages
38,072
Location
風鈴高等学校
Maybe I am just missing something obvious, but often when adding temporary logging while debugging I want to do something like this:
Code:
log(CvWString::format(L"update trade routes: (%s)", getName()));
like here in CvCity::updateTradeRoutes(), so we're talking about CvCity::getName() here. It's not a null pointer, if I check for NULL first I still get crashes. Using other attributes of the city (I usually default to getX(), getY()) works without issues.

What's going on?
 
Duh. Obviously. Thank you.
 
Back
Top Bottom