tweak previous pull with an assert

This commit is contained in:
TTimo 2017-01-01 08:30:46 -06:00
parent d1e5cf4b65
commit d7dafaea33
1 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,8 @@
Ernie Wright 17 Sep 00 Ernie Wright 17 Sep 00
====================================================================== */ ====================================================================== */
#include <assert.h>
#include "../picointernal.h" #include "../picointernal.h"
#include "lwo2.h" #include "lwo2.h"
@ -391,7 +393,8 @@ lwSurface *lwGetSurface5( picoMemStream_t *fp, int cksize, lwObject *obj ){
else if ( flags & 2 ) { else if ( flags & 2 ) {
tex->axis = 1; tex->axis = 1;
} }
else if ( flags & 4 ) { else {
assert( flags & 4 );
tex->axis = 2; tex->axis = 2;
} }