From 324435760d29b77d6ccea1216189e44174afd626 Mon Sep 17 00:00:00 2001 From: David Capello Date: Sun, 7 Mar 2010 16:38:14 -0200 Subject: [PATCH] Modified ase_exception creation with printf style. --- src/commands/cmd_load_mask.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/cmd_load_mask.cpp b/src/commands/cmd_load_mask.cpp index caa61cc81..446e73f25 100644 --- a/src/commands/cmd_load_mask.cpp +++ b/src/commands/cmd_load_mask.cpp @@ -80,7 +80,8 @@ void LoadMaskCommand::execute(Context* context) Mask *mask = load_msk_file(m_filename.c_str()); if (!mask) - throw ase_exception("Error loading .msk file: " + m_filename); + throw ase_exception("Error loading .msk file: %s", + static_cast(m_filename.c_str())); // undo if (undo_is_enabled(sprite->undo)) {