1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Encapsulation of WindowHandler state

This commit is contained in:
Ivan Savenko
2023-05-16 16:07:03 +03:00
parent 7838190ef4
commit 051a4a3c17
10 changed files with 132 additions and 123 deletions

View File

@@ -271,7 +271,7 @@ void ScreenHandler::initializeScreenBuffers()
throw std::runtime_error("Unable to copy surface\n");
}
if (GH.windows().listInt.size() > 1)
if (GH.windows().count() > 1)
screenBuf = screen2;
else
screenBuf = screen;