1
0
forked from 0ad/0ad

Fixes GCC warning about passing NULL to non-pointer argument

This was SVN commit r12506.
This commit is contained in:
historic_bruno 2012-08-21 16:44:54 +00:00
parent ddbc9e7d86
commit 43eac32795

View File

@ -224,7 +224,7 @@ void CSoundGroup::Reload()
ISoundItem* temp = g_SoundManager->LoadItem(thePath);
if (temp == NULL)
HandleError(L"error loading sound", thePath, NULL);
HandleError(L"error loading sound", thePath, ERR::FAIL);
else
snd_group.push_back(temp);
}
@ -253,7 +253,7 @@ bool CSoundGroup::LoadSoundGroup(const VfsPath& pathnameXML)
CXeromyces XeroFile;
if (XeroFile.Load(g_VFS, pathnameXML) != PSRETURN_OK)
{
HandleError(L"error loading file", pathnameXML, NULL);
HandleError(L"error loading file", pathnameXML, ERR::FAIL);
return false;
}
// Define elements used in XML file