mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-01 05:46:06 -04:00
--Bug fixes:
-Omit duplicate entries in error reports. -Properly report missing palette file in command line programs.
This commit is contained in:
@ -112,10 +112,9 @@ template <typename T>
|
||||
static bool InitPaletteList(const string& filename)
|
||||
{
|
||||
PaletteList<T> paletteList;//Even though this is local, the members are static so they will remain.
|
||||
bool added = paletteList.Add(filename);
|
||||
|
||||
paletteList.Add(filename);
|
||||
|
||||
if (!paletteList.Size())
|
||||
if (!added || !paletteList.Size())
|
||||
{
|
||||
cout << "Error parsing palette file " << filename << ". Reason: " << endl;
|
||||
cout << paletteList.ErrorReportString() << endl << "Returning without executing." << endl;
|
||||
|
Reference in New Issue
Block a user