fix(Core/Commands): fix reload creature_template and creature movment
Reloading an existing creature with .reload creature_template will most of the time cause the error "MoveSplineInitArgs::Validate: expression 'velocity > 0.01f' failed for GUID..." when the NPC tries to move afterward without a proper server restart. Caused because the cInfo->speed_run was calling the field 29 for whatever reason.
This commit is contained in:
parent
048eddd8cd
commit
1d0a8dbba0
1 changed files with 1 additions and 1 deletions
|
|
@ -456,7 +456,7 @@ public:
|
|||
cInfo->faction = fields[16].GetUInt16();
|
||||
cInfo->npcflag = fields[17].GetUInt32();
|
||||
cInfo->speed_walk = fields[18].GetFloat();
|
||||
cInfo->speed_run = fields[29].GetFloat();
|
||||
cInfo->speed_run = fields[19].GetFloat();
|
||||
cInfo->scale = fields[20].GetFloat();
|
||||
cInfo->rank = fields[21].GetUInt8();
|
||||
cInfo->mindmg = fields[22].GetFloat();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue