Reset all follow variables when follow target is gone

This commit is contained in:
Michael Cook (mackal) 2018-11-03 18:14:54 -04:00
parent 467e2d3114
commit cc920e60d9

View File

@ -1635,6 +1635,8 @@ void Mob::AI_Process() {
Mob *follow = entity_list.GetMob(static_cast<uint16>(GetFollowID()));
if (!follow) {
SetFollowID(0);
SetFollowDistance(100);
SetFollowCanRun(true);
}
else {