1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

code review

This commit is contained in:
Michael
2023-08-23 00:35:44 +02:00
committed by GitHub
parent 65884b15d0
commit 51ba22a631
4 changed files with 3 additions and 11 deletions

View File

@ -193,7 +193,7 @@ void CPlayerInterface::playerStartsTurn(PlayerColor player)
void CPlayerInterface::performAutosave()
{
std::string id = cb->getStartInfo()->uuid.substr(0, 8);
std::string id = cb->getStartInfo()->gameUuid.substr(0, 8);
int frequency = static_cast<int>(settings["general"]["saveFrequency"].Integer());
if(frequency > 0 && cb->getDate() % frequency == 0)