From: TimePath Date: Fri, 1 Sep 2017 09:31:50 +0000 (+1000) Subject: spawnfuncs: suppress some now visible warnings on init X-Git-Tag: xonotic-v0.8.5~2487^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d8d83279984e45e770d6ec178e52cc3fdd2316b6;p=xonotic%2Fxonotic-data.pk3dir.git spawnfuncs: suppress some now visible warnings on init --- diff --git a/qcsrc/common/weapons/all.qc b/qcsrc/common/weapons/all.qc index afbf79eb5..6605f00c2 100644 --- a/qcsrc/common/weapons/all.qc +++ b/qcsrc/common/weapons/all.qc @@ -530,7 +530,9 @@ void CL_WeaponEntity_SetModel(entity this, string name, bool _anim) int compressed_shotorg = compressShotOrigin(this.movedir); // make them match perfectly #ifdef SVQC - this.movedir = decompressShotOrigin(this.owner.stat_shotorg = compressed_shotorg); + // null during init + if (this.owner) this.owner.stat_shotorg = compressed_shotorg; + this.movedir = decompressShotOrigin(compressed_shotorg); #else this.movedir = decompressShotOrigin(compressed_shotorg); #endif