From cfb856b9cf03de8226acfcbb96bff6efcff8f04c Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 8 Sep 2012 09:38:22 +0900 Subject: [PATCH] Fix byteswapping of a node's firstface/numfaces. I'd forgotten to fix this. --- libs/util/bspfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/util/bspfile.c b/libs/util/bspfile.c index 82911b113..01635d848 100644 --- a/libs/util/bspfile.c +++ b/libs/util/bspfile.c @@ -530,8 +530,8 @@ swap_bsp (bsp_t *bsp, int todisk, void (*cb) (const bsp_t *, void *), } node->children[0] = LittleLong (node->children[0]); node->children[1] = LittleLong (node->children[1]); - node->firstface = LittleShort (node->firstface); - node->numfaces = LittleShort (node->numfaces); + node->firstface = LittleLong (node->firstface); + node->numfaces = LittleLong (node->numfaces); } // leafs