mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
use toEnum instead of getNum for switch'es
This commit is contained in:
@@ -167,7 +167,7 @@ bool CArtifact::isBig() const
|
||||
|
||||
bool CArtifact::isTradable() const
|
||||
{
|
||||
switch(id.getNum())
|
||||
switch(id.toEnum())
|
||||
{
|
||||
case ArtifactID::SPELLBOOK:
|
||||
case ArtifactID::GRAIL:
|
||||
|
||||
Reference in New Issue
Block a user