Maybe I am just missing something obvious, but often when adding temporary logging while debugging I want to do something like this:
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?
Code:
log(CvWString::format(L"update trade routes: (%s)", getName()));
What's going on?