1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

lib/NetPacksLib.cpp: Directly assign to the "std::optional", without dereferencing it.

Assigning to an optional should directly target the optional
This commit is contained in:
Alexander Wilms 2023-10-28 10:15:50 +00:00
parent 703ab677ba
commit 3d8dd35d43

View File

@ -2100,7 +2100,7 @@ void SetObjectProperty::applyGs(CGameState * gs) const
state->towns -= t;
if(state->towns.empty())
*state->daysWithoutCastle = 0;
state->daysWithoutCastle = 0;
}
if(PlayerColor(val).isValidPlayer())
{