1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00

Apply suggestions from code review

Co-authored-by: Nordsoft91 <nordsoft@yahoo.com>
This commit is contained in:
SoundSSGood
2022-11-18 22:15:03 +02:00
committed by GitHub
parent e9ab894638
commit 30bbb57619
3 changed files with 7 additions and 10 deletions

View File

@ -1196,8 +1196,7 @@ DLL_LINKAGE void AssembledArtifact::applyGs(CGameState *gs)
}
else
{
if(al.slot > pos)
al.slot = pos;
al.slot = std::min(al.slot, pos)
}
}