fix msvc build

This commit is contained in:
MihailRis 2024-06-29 21:21:41 +03:00
parent f42cd9e567
commit bb1c0b4b44

View File

@ -400,7 +400,7 @@ void scripting::load_entity_script(const scriptenv& penv, const EntityDef& def,
auto L = lua::get_main_thread();
std::string src = files::read_string(file);
logger.info() << "script (entity) " << file.u8string();
lua::loadbuffer(L, 0, src, file);
lua::loadbuffer(L, 0, src, file.u8string());
lua::store_in(L, lua::CHUNKS_TABLE, def.scriptName);
}