Core/Commands: Fixed .damage command to work with spell schools caused by bad strtok usage

Closes #22280
This commit is contained in:
Shauren authored and Aokromes committed 2018-08-20 04:45:08 +02:00
1 parent 24d69a1db5
commit 5a7a83f520
1 file changed
+1 -5
+1 -5
View File
@@ -2310,11 +2310,7 @@ public:
if (!target->IsAlive())
return true;
char* damageStr = strtok((char*)args, " ");
if (!damageStr)
return false;
int32 damage_int = atoi((char*)damageStr);
int32 damage_int = atoi((char*)str);
if (damage_int <= 0)
return true;