Simplify lua-esque assignment

`success = success && savesettings();` is now changed to
`success &= savesettings();`. It's bitwise, and I think C++ should have
had a &&= for completeness, but it shouldn't matter here.
This commit is contained in:
Dav999-v 2020-11-22 21:18:11 +01:00 committed by Ethan Lee
parent 09986c90f7
commit 04da8085a3
1 changed files with 1 additions and 1 deletions

View File

@ -4816,7 +4816,7 @@ bool Game::savestats(const bool stats_only /*= true*/)
if (!stats_only)
{
success = success && savesettings();
success &= savesettings();
}
return success;