fix: pack environment not passed to components

This commit is contained in:
MihailRis 2025-12-01 22:01:18 +03:00
parent c0d326061e
commit 69cf4c1c04
4 changed files with 19 additions and 4 deletions

View file

@ -186,10 +186,12 @@ namespace scripting {
);
/// @brief Load component script
/// @param env environment
/// @param name component full name (packid:name)
/// @param file component script file path
/// @param fileName script file path using the engine format
void load_entity_component(
const scriptenv& env,
const std::string& name,
const io::path& file,
const std::string& fileName