1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Use ArtifactID instead of int when possible

This commit is contained in:
ArseniyShestakov
2014-12-24 18:49:12 +03:00
parent 5995c975d3
commit 937ef0227b
8 changed files with 11 additions and 10 deletions

View File

@@ -78,7 +78,7 @@ CArtifact::~CArtifact()
int CArtifact::getArtClassSerial() const
{
if(id == 1)
if(id == ArtifactID::SPELL_SCROLL)
return 4;
switch(aClass)
{