From d7dafaea33da0f5760454ac8a507395f24f37596 Mon Sep 17 00:00:00 2001 From: TTimo Date: Sun, 1 Jan 2017 08:30:46 -0600 Subject: [PATCH] tweak previous pull with an assert --- libs/picomodel/lwo/lwob.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/picomodel/lwo/lwob.c b/libs/picomodel/lwo/lwob.c index d9786a86..a8bd25e5 100644 --- a/libs/picomodel/lwo/lwob.c +++ b/libs/picomodel/lwo/lwob.c @@ -8,6 +8,8 @@ Ernie Wright 17 Sep 00 ====================================================================== */ +#include + #include "../picointernal.h" #include "lwo2.h" @@ -391,7 +393,8 @@ lwSurface *lwGetSurface5( picoMemStream_t *fp, int cksize, lwObject *obj ){ else if ( flags & 2 ) { tex->axis = 1; } - else if ( flags & 4 ) { + else { + assert( flags & 4 ); tex->axis = 2; }