Merge pull request #1637 from rathena/hotfix/issue1636

Fixed unknown state handling in mob skills
This commit is contained in:
Jittapan Pluemsumran 2016-10-23 18:29:33 +07:00 committed by GitHub
commit 1c74af7b1f

View File

@ -4435,8 +4435,8 @@ static bool mob_parse_row_mobskilldb(char** str, int columns, int current)
if( j < ARRAYLENGTH(state) ) if( j < ARRAYLENGTH(state) )
ms->state = state[j].id; ms->state = state[j].id;
else { else {
ShowWarning("mob_parse_row_mobskilldb: Unrecognized state %s\n", str[2]); ShowError("mob_parse_row_mobskilldb: Unrecognized state '%s' in line %d\n", str[2], current);
ms->state = MSS_ANY; return false;
} }
//Skill ID //Skill ID