diff --git a/src/supertux/game_object_manager.cpp b/src/supertux/game_object_manager.cpp index e74d839ea4..d53ba29af9 100644 --- a/src/supertux/game_object_manager.cpp +++ b/src/supertux/game_object_manager.cpp @@ -808,7 +808,8 @@ GameObjectManager::register_class(ssq::VM& vm) cls.addFunc("get_ambient_blue", &GameObjectManager::get_ambient_blue); cls.addFunc("set_music", &GameObjectManager::set_music); cls.addFunc("add_object", &GameObjectManager::add_object); + float, float, const std::string&, const std::string&>("add_object", + &GameObjectManager::add_object, ssq::DefaultArguments("auto", "")); } /* EOF */