]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/vehicles/vehicle/bumblebee.qc
Fix crash
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / vehicles / vehicle / bumblebee.qc
index cd2804a337bc10aee7d236538cd49c0b7f8b8f4d..f65bb0cd554a728c046ae181cc5f85abaab58ed0 100644 (file)
@@ -788,8 +788,8 @@ spawnfunc(vehicle_bumblebee)
                }
                METHOD(Bumblebee, vr_death, void(Bumblebee thisveh, entity instance))
                {
-                       SELFPARAM();
                        entity oldself = self;
+                       setself(instance);
 
                        CSQCModel_UnlinkEntity(self);
 
@@ -849,6 +849,8 @@ spawnfunc(vehicle_bumblebee)
                        self.nextthink          = 0;
 
                        setorigin(self, self.pos1);
+
+                       setself(oldself);
                }
                METHOD(Bumblebee, vr_spawn, void(Bumblebee thisveh, entity instance))
                {