]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/waypoints.qc
Use think accessors
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / waypoints.qc
index bba6a1b9e2a7084b1fb9a1ad06a2a975c57b7596..2f0b425399560f77a4df0efe89d322a5a874cc7f 100644 (file)
@@ -289,7 +289,7 @@ void waypoint_schedulerelink(entity wp)
        if (!(wp.wpflags & WAYPOINTFLAG_NORELINK))
                waypoint_clearlinks(wp);
        // schedule an actual relink on next frame
-       wp.think = waypoint_think;
+       setthink(wp, waypoint_think);
        wp.nextthink = time;
        wp.effects = EF_LOWPRECISION;
 }