fix msvc build
This commit is contained in:
@@ -400,7 +400,7 @@ void scripting::load_entity_script(const scriptenv& penv, const EntityDef& def,
|
|||||||
auto L = lua::get_main_thread();
|
auto L = lua::get_main_thread();
|
||||||
std::string src = files::read_string(file);
|
std::string src = files::read_string(file);
|
||||||
logger.info() << "script (entity) " << file.u8string();
|
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);
|
lua::store_in(L, lua::CHUNKS_TABLE, def.scriptName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user