Fix for ModifyNPCStat when checking PhR as it would never be true as the check is set to lowercase

This commit is contained in:
Natedog2012 2016-04-17 16:25:46 -07:00
parent 1b3cfc9a5c
commit 53c7abf16e

View File

@ -1961,7 +1961,7 @@ void NPC::ModifyNPCStat(const char *identifier, const char *newValue)
else if(id == "cr") { CR = atoi(val.c_str()); return; }
else if(id == "pr") { PR = atoi(val.c_str()); return; }
else if(id == "dr") { DR = atoi(val.c_str()); return; }
else if(id == "PhR") { PhR = atoi(val.c_str()); return; }
else if(id == "phr") { PhR = atoi(val.c_str()); return; }
else if(id == "runspeed") {
runspeed = (float)atof(val.c_str());
base_runspeed = (int)((float)runspeed * 40.0f);