mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
use toEnum instead of getNum for switch'es
This commit is contained in:
@ -556,7 +556,7 @@ void ObjectManager::placeObject(rmg::Object & object, bool guarded, bool updateD
|
||||
}
|
||||
}
|
||||
|
||||
switch (instance->object().ID.getNum())
|
||||
switch (instance->object().ID.toEnum())
|
||||
{
|
||||
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.getNum())
|
||||
switch(object.instances().front()->object().ID.toEnum())
|
||||
{
|
||||
case Obj::WATER_WHEEL:
|
||||
if (auto* m = zone.getModificator<RiverPlacer>())
|
||||
|
Reference in New Issue
Block a user