]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix a relink warning
authorMario <mario@smbclan.net>
Sat, 23 Jun 2018 13:50:06 +0000 (23:50 +1000)
committerMario <mario@smbclan.net>
Sat, 23 Jun 2018 13:51:03 +0000 (23:51 +1000)
qcsrc/common/physics/movetypes/movetypes.qc

index ca43d803bc21ff0cc943b16753f096ce684ef42d..9ac3e4299901db21051d4ea2f206fe8636bbfa30 100644 (file)
@@ -532,6 +532,8 @@ void _Movetype_Physics_Frame(entity this, float movedt)
                case MOVETYPE_FLY:
                case MOVETYPE_FLY_WORLDONLY:
                        _Movetype_Physics_Toss(this, movedt);
+                       if(wasfreed(this))
+                               return;
                        _Movetype_LinkEdict(this, true);
                        break;
                case MOVETYPE_PHYSICS: