Initialise everything in the SaveFileInfo to 0.

We were getting std::tm initialised to random values which non-existent files become the preferred save.
This commit is contained in:
Sacha 2013-10-23 23:19:50 +10:00
parent 07e8d475b3
commit 1af2f99959

View File

@ -254,6 +254,15 @@ struct SaveFileInfo
int textureWidth;
int textureHeight;
SaveFileInfo() : size(0), saveName(""), idx(0),
textureData(0), textureWidth(0), textureHeight(0)
{
memset(title, 0, 128);
memset(saveTitle, 0, 128);
memset(saveDetail, 0, 1024);
modif_time = {0};
}
void DoState(PointerWrap &p)
{
auto s = p.Section("SaveFileInfo", 1);