Only use abort() for fatal conditions: abort() cleanup patch.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7521 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
c541cc63f0
commit
59a1576ddb
|
@ -142,7 +142,7 @@ BOOL mapNew(UDWORD width, UDWORD height)
|
|||
if (width*height > MAP_MAXAREA)
|
||||
{
|
||||
debug(LOG_ERROR, "map too large : %u %u", width, height);
|
||||
abort();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -2088,7 +2088,7 @@ bool readVisibilityData(const char* fileName)
|
|||
{
|
||||
PHYSFS_close(fileHandle);
|
||||
ASSERT(!"readVisibilityData: unexpected filesize", "readVisibilityData: unexpected filesize; should be %u, but is %u", expectedFileSize, fileSize);
|
||||
abort();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue