From 04da8085a38c9e88ec2c478eb7c074293021f806 Mon Sep 17 00:00:00 2001 From: Dav999-v Date: Sun, 22 Nov 2020 21:18:11 +0100 Subject: [PATCH] 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. --- desktop_version/src/Game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index b2fd2d2c..ccf9c7f4 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -4816,7 +4816,7 @@ bool Game::savestats(const bool stats_only /*= true*/) if (!stats_only) { - success = success && savesettings(); + success &= savesettings(); } return success;