Skip to content

Commit

Permalink
Add default arguments to add_object function call
Browse files Browse the repository at this point in the history
(direction: "auto" and additional arguments: "")
  • Loading branch information
tobbi committed Jan 11, 2025
1 parent 83ff0ce commit 54c5d41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/supertux/game_object_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<void, GameObjectManager, const std::string&, const std::string&,
float, float, const std::string&, const std::string&>("add_object", &GameObjectManager::add_object);
float, float, const std::string&, const std::string&>("add_object",
&GameObjectManager::add_object, ssq::DefaultArguments<const std::string&, const std::string&>("auto", ""));
}

/* EOF */

0 comments on commit 54c5d41

Please sign in to comment.