X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Fsquirrel_error.cpp;h=2c28273fb6bf715482238467222d794a5c465e91;hb=8e38c01a8c4f2937c3f53d46d3034b0f55ba4316;hp=f7d45e435a9387ada0066076910c3f8c851d0375;hpb=07ddaed2a657e4d2a3d038fed223fc5827159caf;p=supertux.git diff --git a/src/scripting/squirrel_error.cpp b/src/scripting/squirrel_error.cpp index f7d45e435..2c28273fb 100644 --- a/src/scripting/squirrel_error.cpp +++ b/src/scripting/squirrel_error.cpp @@ -16,7 +16,6 @@ // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - #include #include "squirrel_error.hpp" @@ -39,8 +38,8 @@ SquirrelError::SquirrelError(HSQUIRRELVM v, const std::string& message) throw() { sq_getstring(v, -1, &lasterr); } - sq_pop(v, 1); msg << lasterr << ")"; + sq_pop(v, 1); this->message = msg.str(); }