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

Explicitly convert identifier to underlying enumeration

This commit is contained in:
Ivan Savenko
2023-11-02 16:29:59 +02:00
parent 87f6c7354b
commit 2b9c362d5b
17 changed files with 30 additions and 30 deletions

View File

@@ -944,7 +944,7 @@ void FoWChange::applyGs(CGameState *gs)
const CGObjectInstance *o = elem;
if (o)
{
switch(o->ID)
switch(o->ID.toEnum())
{
case Obj::HERO:
case Obj::MINE: