Exit update_bind immediately if there is no bind target.
@@ -21305,8 +21305,12 @@ void damage_recursive(entity *target)
void adjust_bind(entity *e)
{
+ // If there is no binding
+ // target, just get out.
if(e->binding.ent)
{
+ return;
+ }
if(e->binding.animation_match)
{
@@ -21395,7 +21399,6 @@ void adjust_bind(entity *e)
// the default is no change :), just give a value of 12345 or so
}
}
-}
void check_move(entity *e)
