X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fdefault%2Fwaypoints.qc;h=84cca9fe2cd7716b540370a88f57ec4f67050971;hp=bd5d13e2ce91c035416197de55a642964ad0f265;hb=7d13257ab8cd25177ae7e2991f4e6fae6869d92a;hpb=e85be42ea62e8f381160ae6944f91eca8d66f044;ds=sidebyside diff --git a/qcsrc/server/bot/default/waypoints.qc b/qcsrc/server/bot/default/waypoints.qc index bd5d13e2ce..84cca9fe2c 100644 --- a/qcsrc/server/bot/default/waypoints.qc +++ b/qcsrc/server/bot/default/waypoints.qc @@ -1530,6 +1530,10 @@ void botframe_showwaypointlinks() FOREACH_CLIENT(IS_PLAYER(it) && !it.isbot, { int display_type = 0; + if (wasfreed(it.wp_aimed)) + it.wp_aimed = NULL; + if (wasfreed(it.wp_locked)) + it.wp_locked = NULL; if (PHYS_INPUT_BUTTON_USE(it)) it.wp_locked = it.wp_aimed; entity head = it.wp_locked;