]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Suppress null model warning
authorTimePath <andrew.hardaker1995@gmail.com>
Sun, 13 Mar 2016 09:32:25 +0000 (20:32 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Sun, 13 Mar 2016 09:32:25 +0000 (20:32 +1100)
qcsrc/common/models/all.qh

index e960317767942c9ecc6944b55b4b465f71b002bd..f3bfd64c7532a833757eed9545782933b72272aa 100644 (file)
@@ -11,6 +11,11 @@ REGISTER_REGISTRY(Models)
     string MDL_##name##_get() { return path; } \
     REGISTER(Models, MDL, name, m_id, NEW(Model, MDL_##name##_get))
 
+STATIC_INIT(NULLMDL)
+{
+    precache_model("null");
+}
+
 PRECACHE(Models) {
     FOREACH(Models, true, it.model_precache(it));
 }