mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-02-01 21:55:01 +01: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:
parent
9b3853bf94
commit
72ddd9bdb4
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue