Fix "Called C++ object pointer is null" for EditableCatalog.cpp

Signed-off-by: Oliver Tappe <zooey@hirschkaefer.de>
This commit is contained in:
Murai Takashi 2013-07-13 16:30:47 +09:00 committed by Oliver Tappe
parent 4ba4d40bb2
commit e5ab37ae70

View File

@ -140,7 +140,7 @@ EditableCatalog::WriteToResource(const entry_ref& appOrAddOnRef)
void EditableCatalog::MakeEmpty()
{
if (fCatalogData == NULL)
if (fCatalogData != NULL)
fCatalogData->MakeEmpty();
}