mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-02-04 00:05:31 +03: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:
@@ -5118,7 +5118,7 @@ void Game::loadquick()
|
|||||||
}
|
}
|
||||||
else if (pKey == "hardestroom")
|
else if (pKey == "hardestroom")
|
||||||
{
|
{
|
||||||
hardestroom = atoi(pText);
|
hardestroom = pText;
|
||||||
}
|
}
|
||||||
else if (pKey == "hardestroomdeaths")
|
else if (pKey == "hardestroomdeaths")
|
||||||
{
|
{
|
||||||
@@ -5387,7 +5387,7 @@ void Game::customloadquick(std::string savfile)
|
|||||||
}
|
}
|
||||||
else if (pKey == "hardestroom")
|
else if (pKey == "hardestroom")
|
||||||
{
|
{
|
||||||
hardestroom = atoi(pText);
|
hardestroom = pText;
|
||||||
}
|
}
|
||||||
else if (pKey == "hardestroomdeaths")
|
else if (pKey == "hardestroomdeaths")
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user