]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/stats.qh
s/world/NULL/
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / stats.qh
index 228e604a281444e3cd16e6fb0f032e5c94272c5d..bd8b792967a5cfbba7365455c12aa6044b19b2a4 100644 (file)
@@ -93,7 +93,7 @@ USING(vectori, vector);
     #define REGISTER_STAT_3(id, T, expr) \
        REGISTER_STAT_2(id, T); \
        [[accumulate]] void GlobalStats_update(entity this) { STAT(id, this) = (expr); } \
-       STATIC_INIT(worldstat_##id) { entity this = world; STAT(id, this) = (expr); }
+       STATIC_INIT(worldstat_##id) { entity this = NULL; STAT(id, this) = (expr); }
 #else
        #define REGISTER_STAT_2(id, type)
     #define REGISTER_STAT_3(id, T, expr)