Possible compiler fix

This commit is contained in:
Lion Kortlepel
2021-09-17 00:54:41 +02:00
parent a44050f0f1
commit c73d56c143
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -204,6 +204,7 @@ sol::table TLuaEngine::StateThreadData::Lua_GetPlayerIdentifiers(int ID) {
return sol::nil; return sol::nil;
} }
} }
sol::table TLuaEngine::StateThreadData::Lua_GetPlayers() { sol::table TLuaEngine::StateThreadData::Lua_GetPlayers() {
sol::table Result = mStateView.create_table(); sol::table Result = mStateView.create_table();
mEngine->Server().ForEachClient([&](std::weak_ptr<TClient> Client) -> bool { mEngine->Server().ForEachClient([&](std::weak_ptr<TClient> Client) -> bool {
+1 -1
View File
@@ -30,7 +30,7 @@ TLuaPlugin::TLuaPlugin(TLuaEngine& Engine, const TLuaPluginConfig& Config, const
std::vector<std::pair<fs::path, std::shared_ptr<TLuaResult>>> ResultsToCheck; std::vector<std::pair<fs::path, std::shared_ptr<TLuaResult>>> ResultsToCheck;
for (const auto& Entry : Entries) { for (const auto& Entry : Entries) {
// read in entire file // read in entire file
std::FILE* File = std::fopen(Entry.c_str(), "r"); std::FILE* File = std::fopen(static_cast<const char*>(Entry.c_str()), "r");
if (File) { if (File) {
auto Size = std::filesystem::file_size(Entry); auto Size = std::filesystem::file_size(Entry);
auto Contents = std::make_shared<std::string>(); auto Contents = std::make_shared<std::string>();