fix msvc build
This commit is contained in:
parent
f42cd9e567
commit
bb1c0b4b44
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user