]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/command/sv_cmd.qc
Use think accessors
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / sv_cmd.qc
index 3cea4fcc7cf4b43708dbeb5b86a5a3c21e143e81..bc530b9bce44fa6d4b27e40a148d6b9c97c18d12 100644 (file)
@@ -50,7 +50,7 @@ void make_mapinfo_Think()
        }
        else
        {
-               self.think = make_mapinfo_Think;
+               setthink(self, make_mapinfo_Think);
                self.nextthink = time;
        }
 }
@@ -969,7 +969,7 @@ void GameCommand_make_mapinfo(float request)
                        entity tmp_entity;
 
                        tmp_entity = new(make_mapinfo);
-                       tmp_entity.think = make_mapinfo_Think;
+                       setthink(tmp_entity, make_mapinfo_Think);
                        tmp_entity.nextthink = time;
                        MapInfo_Enumerate();
                        return;