mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Converted creature ID and spell ID to new form
This commit is contained in:
@ -342,8 +342,8 @@ ui32 RmgMap::getTotalZoneCount() const
|
||||
|
||||
bool RmgMap::isAllowedSpell(const SpellID & sid) const
|
||||
{
|
||||
assert(sid >= 0);
|
||||
if (sid < mapInstance->allowedSpells.size())
|
||||
assert(sid.getNum() >= 0);
|
||||
if (sid.getNum() < mapInstance->allowedSpells.size())
|
||||
{
|
||||
return mapInstance->allowedSpells[sid];
|
||||
}
|
||||
|
Reference in New Issue
Block a user