diff options
| -rw-r--r-- | brlyt.c | 10 | ||||
| -rw-r--r-- | general.h | 2 |
2 files changed, 11 insertions, 1 deletions
@@ -410,6 +410,11 @@ u16 findMatOffset(char *mats) isEqual = strcmp(mats, mat); if (isEqual != 0) i++; mat = mat + strlen(mat) + 1; + if( i == numberOfMaterials ) + { + printf("ERROR: material not found: %s\n", mats); + exit(-1); + } } return i; } @@ -424,6 +429,11 @@ u16 findTexOffset(char *tex) isEqual = strcmp(tex, texs); if (isEqual != 0) i++; texs = texs + strlen(texs) + 1; + if( i == numberOfTextures ) + { + printf("ERROR: texture not found: %s\n", tex); + exit(-1); + } } return i; } @@ -12,7 +12,7 @@ #define BENZIN_VERSION_MAJOR 1 #define BENZIN_VERSION_MINOR 9 -#define BENZIN_VERSION_BUILD 7 +#define BENZIN_VERSION_BUILD 8 #define BENZIN_VERSION_OTHER "BETA" #define INFORMATION_TEXT \ |
