#324: Hopefully this fixes the issue with malformed UTF-8 sequences causing SuperTux...
[supertux.git] / src / scripting / squirrel_util.cpp
index d3fde6d..e25887d 100644 (file)
@@ -92,7 +92,7 @@ void init_squirrel(bool enable_debugger)
   // register supertux API
   register_supertux_wrapper(global_vm);
 
-  // TODO remove this at some point... it shoud just be functions not an object
+  // TODO remove this at some point... it should just be functions not an object
   expose_object(global_vm, -1, new Scripting::Level(), "Level", true);
 
   sq_pop(global_vm, 1);
@@ -475,7 +475,7 @@ int read_int(HSQUIRRELVM vm, const char* name)
     throw Scripting::SquirrelError(vm, msg.str());
   }
 
-  int result;
+  SQInteger result;
   if(SQ_FAILED(sq_getinteger(vm, -1, &result))) {
     std::ostringstream msg;
     msg << "Couldn't get int value for '" << name << "' from table";