aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 2cba7f6ef10..6c04104d619 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -3306,7 +3306,7 @@ uint8 Spell::CheckRuneCost(uint32 runeCostID)
runeCost[i] = src->RuneCost[i];
}
- runeCost[RUNE_DEATH] = 0; // calculated later
+ runeCost[RUNE_DEATH] = MAX_RUNES; // calculated later
for(uint32 i = 0; i < MAX_RUNES; ++i)
{
@@ -3325,7 +3325,7 @@ uint8 Spell::CheckRuneCost(uint32 runeCostID)
}
}
- if(runeCost[RUNE_DEATH] > 0)
+ if(runeCost[RUNE_DEATH] > MAX_RUNES)
return SPELL_FAILED_NO_POWER; // not sure if result code is correct
return 0;