From d8d83279984e45e770d6ec178e52cc3fdd2316b6 Mon Sep 17 00:00:00 2001 From: TimePath Date: Fri, 1 Sep 2017 19:31:50 +1000 Subject: [PATCH] spawnfuncs: suppress some now visible warnings on init --- qcsrc/common/weapons/all.qc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.2