From: TimePath Date: Sun, 13 Mar 2016 09:32:25 +0000 (+1100) Subject: Suppress null model warning X-Git-Tag: xonotic-v0.8.2~1099 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=f842e5c9c443c2fea7a82762a6ba0f7b88938770;p=xonotic%2Fxonotic-data.pk3dir.git Suppress null model warning --- diff --git a/qcsrc/common/models/all.qh b/qcsrc/common/models/all.qh index e96031776..f3bfd64c7 100644 --- a/qcsrc/common/models/all.qh +++ b/qcsrc/common/models/all.qh @@ -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)); }