1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Converted attributes to use c++17 functionality

This commit is contained in:
Ivan Savenko
2023-04-10 17:44:41 +03:00
parent 2150eabfc5
commit 63b197b78a
14 changed files with 15 additions and 47 deletions

View File

@@ -514,10 +514,9 @@ void CCreatureSet::putStack(const SlotID & slot, CStackInstance * stack)
void CCreatureSet::joinStack(const SlotID & slot, CStackInstance * stack)
{
const CCreature *c = getCreature(slot);
[[maybe_unused]] const CCreature *c = getCreature(slot);
assert(c == stack->type);
assert(c);
MAYBE_UNUSED(c);
//TODO move stuff
changeStackCount(slot, stack->count);