mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Replace static_cast's of Identifiers with getNum call
This commit is contained in:
@@ -369,7 +369,7 @@ si32 FactionID::decode(const std::string & identifier)
|
||||
if(rawId)
|
||||
return rawId.value();
|
||||
else
|
||||
return FactionID::DEFAULT;
|
||||
return FactionID::DEFAULT.getNum();
|
||||
}
|
||||
|
||||
std::string FactionID::encode(const si32 index)
|
||||
|
||||
Reference in New Issue
Block a user