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:
parent
703ab677ba
commit
3d8dd35d43
@ -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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user