X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmapobjects%2Ftriggers.qc;h=cfc1d6fac67f6222162c444e665f2dd31133b443;hb=8141387a9bf057652453a8d4dc530116cf4cc31a;hp=5fc5f4f3fb1bea0af0fc09682ab7b6196e857aeb;hpb=b7610530401882c79ab403b32c12d7f233716ff6;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/mapobjects/triggers.qc b/qcsrc/common/mapobjects/triggers.qc index 5fc5f4f3f..cfc1d6fac 100644 --- a/qcsrc/common/mapobjects/triggers.qc +++ b/qcsrc/common/mapobjects/triggers.qc @@ -205,6 +205,8 @@ void trigger_common_read(entity this, bool withtarget) this.angles = '0 0 0'; this.modelindex = ReadShort(); + if (this.modelindex) + setmodelindex(this, this.modelindex); this.mins = ReadVector(); this.maxs = ReadVector(); this.scale = ReadByte() / 16;