mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-03 16:25:35 +00:00
Possible compiler fix
This commit is contained in:
parent
79531334dd
commit
e64114e4fa
@ -2,7 +2,7 @@
|
||||
#include "Client.h"
|
||||
#include "TLuaEngine.h"
|
||||
|
||||
static std::string LuaToString(sol::object Value, size_t Indent = 1) {
|
||||
static std::string LuaToString(const sol::object Value, size_t Indent = 1) {
|
||||
switch (Value.get_type()) {
|
||||
case sol::type::userdata: {
|
||||
std::stringstream ss;
|
||||
@ -80,7 +80,7 @@ std::tuple<int, int, int> LuaAPI::MP::GetServerVersion() {
|
||||
void LuaAPI::Print(sol::variadic_args Args) {
|
||||
std::string ToPrint = "";
|
||||
for (const auto& Arg : Args) {
|
||||
ToPrint += LuaToString(Arg);
|
||||
ToPrint += LuaToString(static_cast<const sol::object>(Arg));
|
||||
ToPrint += "\t";
|
||||
}
|
||||
luaprint(ToPrint);
|
||||
|
Loading…
x
Reference in New Issue
Block a user