Better debuging of not found data.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2270 4a71c877-e1ca-e34f-864e-861f7616d084
master
Dennis Schridde 2007-07-29 17:17:38 +00:00
parent f612678624
commit 8939a96d21
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}