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