X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fg_hook.qc;h=c5deb58e2beb4faf778d3f70142da82df423d909;hp=88d63e384c11261fc3cb70499cda902c512822cc;hb=0a980f57412cf2253cfd73c8c01a26fb04c87189;hpb=05ee5b1212a6537e5c5acb76dbc1ef9df40f85c6 diff --git a/qcsrc/server/g_hook.qc b/qcsrc/server/g_hook.qc index 88d63e384c..c5deb58e2b 100644 --- a/qcsrc/server/g_hook.qc +++ b/qcsrc/server/g_hook.qc @@ -74,7 +74,7 @@ void RemoveGrapplingHook(entity pl) { if(pl.hook == NULL) return; - remove(pl.hook); + delete(pl.hook); pl.hook = NULL; if(pl.move_movetype == MOVETYPE_FLY) set_movetype(pl, MOVETYPE_WALK); @@ -87,7 +87,7 @@ void GrapplingHookReset(entity this) if(this.realowner.hook == this) RemoveGrapplingHook(this.owner); else // in any case: - remove(this); + delete(this); } void GrapplingHookThink(entity this);