1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-12 07:43:38 +02:00

Fix <hardestroom> having atoi() called on it when loading quicksave

For some reason (probably a copy-paste error), this XML tag gets atoi()
called on it before being assigned to Game::hardestroom. And only when
loading a quicksave, at that.

This would result in Game::hardestroom being set to an empty string,
which if you kept until Game Complete, would end up rendering as a
single null byte (if you even have a font face for said null byte).

I'm not sure how this error compiles in the first place, but whatever.
This commit is contained in:
Misa 2020-05-18 14:16:23 -07:00 committed by Ethan Lee
parent 9b3853bf94
commit 72ddd9bdb4

View File

@ -5118,7 +5118,7 @@ void Game::loadquick()
}
else if (pKey == "hardestroom")
{
hardestroom = atoi(pText);
hardestroom = pText;
}
else if (pKey == "hardestroomdeaths")
{
@ -5387,7 +5387,7 @@ void Game::customloadquick(std::string savfile)
}
else if (pKey == "hardestroom")
{
hardestroom = atoi(pText);
hardestroom = pText;
}
else if (pKey == "hardestroomdeaths")
{