mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Explicitly convert identifier to underlying enumeration
This commit is contained in:
@@ -556,7 +556,7 @@ void ObjectManager::placeObject(rmg::Object & object, bool guarded, bool updateD
|
||||
}
|
||||
}
|
||||
|
||||
switch (instance->object().ID)
|
||||
switch (instance->object().ID.getNum())
|
||||
{
|
||||
case Obj::RANDOM_TREASURE_ART:
|
||||
case Obj::RANDOM_MINOR_ART: //In OH3 quest artifacts have higher value than normal arts
|
||||
@@ -586,7 +586,7 @@ void ObjectManager::placeObject(rmg::Object & object, bool guarded, bool updateD
|
||||
case Obj::MONOLITH_ONE_WAY_EXIT:
|
||||
*/
|
||||
|
||||
switch (object.instances().front()->object().ID)
|
||||
switch (object.instances().front()->object().ID.getNum())
|
||||
{
|
||||
case Obj::WATER_WHEEL:
|
||||
if (auto* m = zone.getModificator<RiverPlacer>())
|
||||
|
||||
Reference in New Issue
Block a user