From f842e5c9c443c2fea7a82762a6ba0f7b88938770 Mon Sep 17 00:00:00 2001 From: TimePath Date: Sun, 13 Mar 2016 20:32:25 +1100 Subject: [PATCH] Suppress null model warning --- qcsrc/common/models/all.qh | 5 +++++ 1 file changed, 5 insertions(+) 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)); } -- 2.39.2