Possible compiler fix

This commit is contained in:
Lion Kortlepel 2021-09-17 00:54:41 +02:00
parent a44050f0f1
commit c73d56c143
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B
2 changed files with 2 additions and 1 deletions

View File

@ -204,6 +204,7 @@ sol::table TLuaEngine::StateThreadData::Lua_GetPlayerIdentifiers(int ID) {
return sol::nil;
}
}
sol::table TLuaEngine::StateThreadData::Lua_GetPlayers() {
sol::table Result = mStateView.create_table();
mEngine->Server().ForEachClient([&](std::weak_ptr<TClient> Client) -> bool {

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;
for (const auto& Entry : Entries) {
// 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) {
auto Size = std::filesystem::file_size(Entry);
auto Contents = std::make_shared<std::string>();