mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 22:41:49 +00:00
fix msvc build
This commit is contained in:
parent
f42cd9e567
commit
bb1c0b4b44
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue