Better debuging of not found data.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2270 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
f612678624
commit
8939a96d21
|
@ -614,7 +614,9 @@ void *resGetDataFromHash(const char *pType, UDWORD HashedID)
|
|||
/* Return the resource for a type and ID */
|
||||
void *resGetData(const char *pType, const char *pID)
|
||||
{
|
||||
return resGetDataFromHash(pType, HashStringIgnoreCase(pID));
|
||||
void * data = resGetDataFromHash(pType, HashStringIgnoreCase(pID));
|
||||
ASSERT(data != NULL, "resGetData: Unable to find data for %s type %s", pID, pType);
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue