From: Matthias Braun Date: Sat, 2 Jul 2005 02:21:22 +0000 (+0000) Subject: fix constant wrapper X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=28307f87a403c3d69a5294f42ab931e3094a8e57;p=supertux.git fix constant wrapper SVN-Revision: 2675 --- diff --git a/tools/miniswig/create_wrapper.cpp b/tools/miniswig/create_wrapper.cpp index c39f8d435..8b0305bc6 100644 --- a/tools/miniswig/create_wrapper.cpp +++ b/tools/miniswig/create_wrapper.cpp @@ -181,9 +181,9 @@ WrapperCreator::create_register_constant_code(Field* field) return; out << ind << "sq_pushstring(v, \"" << field->name << "\", -1);\n"; if(field->type->atomic_type == &BasicType::INT) { - out << ind << "sq_pushinteger(v, " << field->const_int_value << ")\n"; + out << ind << "sq_pushinteger(v, " << field->const_int_value << ");\n"; } else if(field->type->atomic_type == &BasicType::FLOAT) { - out << ind << "sq_pushfloat(v, " << field->const_float_value << ")\n"; + out << ind << "sq_pushfloat(v, " << field->const_float_value << ");\n"; } else if(field->type->atomic_type == StringType::instance()) { out << ind << "sq_pushstring(v, \"" << field->const_string_value << "\", -1);\n";