1
0
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:
Konstantin 2023-02-11 18:19:27 +03:00
parent bdd976cc1e
commit f0bfce29a0

View File

@ -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());