]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Silence a warning
authorMario <mario@smbclan.net>
Sun, 15 Nov 2015 15:31:37 +0000 (01:31 +1000)
committerMario <mario@smbclan.net>
Sun, 15 Nov 2015 15:31:37 +0000 (01:31 +1000)
qcsrc/client/csqcmodel_hooks.qc

index 7eb672ba5f54d7f0045525d40442398fc6cc419e..51b373fb796c490283333dca934cfd22d661147e 100644 (file)
@@ -168,6 +168,7 @@ void CSQCPlayer_ModelAppearance_Apply(bool islocalplayer)
 
                // only if this failed, find it out on our own
                entity e = spawn();
+               precache_model(autocvar__cl_playermodel);
                _setmodel(e, autocvar__cl_playermodel); // this is harmless, see below
                forceplayermodels_modelisgoodmodel = fexists(e.model);
                forceplayermodels_model = e.model;