Modified ase_exception creation with printf style.

This commit is contained in:
David Capello 2010-03-07 16:16:10 -02:00
parent 61316bedab
commit 77a54b7d34

View File

@ -130,8 +130,8 @@ App::App(int argc, char* argv[])
pal = palette_load(palette_filename);
if (pal == NULL)
throw ase_exception(std::string("Error loading default palette from: ")
+ palette_filename);
throw ase_exception("Error loading default palette from: %s",
static_cast<const char*>(palette_filename));
set_default_palette(pal);
palette_free(pal);