Updated to handle UMX archives with empty type specifier.

This commit is contained in:
Christopher Snowhill 2016-12-22 20:42:06 -08:00
parent 5959e6cb69
commit 31a0f9155c

View file

@ -48,8 +48,7 @@ void * unpackUmx( const void * in, long * size )
if (classname && !strcmp(pkg.oclassname(i), "Music"))
{
char * type = pkg.otype(i);
if (!type) continue;
if (!strcasecmp(type, "it") || !strcasecmp(type, "s3m") || !strcasecmp(type, "xm"))
if (!type || !strcasecmp(type, "it") || !strcasecmp(type, "s3m") || !strcasecmp(type, "xm"))
{
*size = pkg.object_size(i);
void * ret = malloc( *size );