mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-22 22:13:35 +02:00
vcmi: modernize lua v2
This commit is contained in:
parent
bdd976cc1e
commit
f0bfce29a0
@ -529,7 +529,7 @@ int LuaContext::loadModule()
|
|||||||
|
|
||||||
auto rawData = loader->load(id)->readAll();
|
auto rawData = loader->load(id)->readAll();
|
||||||
|
|
||||||
auto sourceText = std::string((char *)rawData.first.get(), rawData.second);
|
auto sourceText = std::string(reinterpret_cast<char *>(rawData.first.get()), rawData.second);
|
||||||
|
|
||||||
int ret = luaL_loadbuffer(L, sourceText.c_str(), sourceText.size(), modulePath.c_str());
|
int ret = luaL_loadbuffer(L, sourceText.c_str(), sourceText.size(), modulePath.c_str());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user