diff --git a/include/QF/model.h b/include/QF/model.h index 65b0a213c..5f4d4cd9c 100644 --- a/include/QF/model.h +++ b/include/QF/model.h @@ -187,7 +187,9 @@ typedef struct mleaf_s int contents; // wil be a negative contents number int visframe; // node needs to be traversed if current - float minmaxs[6]; // for bounding box culling + // for bounding box culling + float mins[3]; + float maxs[3]; struct mnode_s *parent; diff --git a/libs/models/brush/model_brush.c b/libs/models/brush/model_brush.c index ecfb9f2bd..095197032 100644 --- a/libs/models/brush/model_brush.c +++ b/libs/models/brush/model_brush.c @@ -622,8 +622,8 @@ Mod_LoadLeafs (lump_t *l) isnotmap = false; for (i = 0; i < count; i++, in++, out++) { for (j = 0; j < 3; j++) { - out->minmaxs[j] = LittleShort (in->mins[j]); - out->minmaxs[3 + j] = LittleShort (in->maxs[j]); + out->mins[j] = LittleShort (in->mins[j]); + out->maxs[j] = LittleShort (in->maxs[j]); } p = LittleLong (in->contents);