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:
@@ -173,7 +173,7 @@ void CGObjectInstance::pickRandomObject(CRandomGenerator & rand)
|
||||
|
||||
void CGObjectInstance::initObj(CRandomGenerator & rand)
|
||||
{
|
||||
switch(ID)
|
||||
switch(ID.toEnum())
|
||||
{
|
||||
case Obj::TAVERN:
|
||||
blockVisit = true;
|
||||
@@ -302,7 +302,7 @@ std::vector<Component> CGObjectInstance::getPopupComponents(const CGHeroInstance
|
||||
|
||||
void CGObjectInstance::onHeroVisit( const CGHeroInstance * h ) const
|
||||
{
|
||||
switch(ID)
|
||||
switch(ID.toEnum())
|
||||
{
|
||||
case Obj::SANCTUARY:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user