Fixed TIKI_LoadSetupCaseHeader() not using case value properly

This commit is contained in:
smallmodel 2023-10-19 19:47:06 +02:00
parent e76837b42c
commit 1f0418a9cd
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -788,7 +788,7 @@ qboolean TIKI_LoadSetupCaseHeader( dtiki_t *tiki, const char *filename, dloadsur
break; break;
val = keyValues->find( key ); val = keyValues->find( key );
if( val && !stricmp( key.c_str(), val->c_str() ) ) if( val && !stricmp(val->c_str(), value) )
{ {
match = true; match = true;
} }
@ -853,7 +853,7 @@ qboolean TIKI_LoadSetupCase( dtiki_t *tiki, const char *filename, dloadsurface_t
if( skip ) if( skip )
break; break;
if( tiki->numMeshes >= 12 ) if( tiki->numMeshes >= MAX_SKELMODELS )
{ {
TIKI_Error( "^~^~^ TIKI_LoadSetup: too many skelmodels in %s.\n", filename ); TIKI_Error( "^~^~^ TIKI_LoadSetup: too many skelmodels in %s.\n", filename );
return false; return false;