mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2025-08-18 08:05:35 +00:00
Possible compiler fix
This commit is contained in:
parent
a44050f0f1
commit
c73d56c143
@ -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 {
|
||||
|
@ -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>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user