mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-21 15:40:33 +00:00
final commit for the fix to linux lua - fix #27
This commit is contained in:
@@ -819,6 +819,7 @@ void TLuaArg::PushArgs(lua_State* State) {
|
|||||||
} else if (Type == typeid(double)) {
|
} else if (Type == typeid(double)) {
|
||||||
lua_pushnumber(State, std::any_cast<double>(arg));
|
lua_pushnumber(State, std::any_cast<double>(arg));
|
||||||
} else {
|
} else {
|
||||||
|
// if this happens, implement a sane behavior for that value
|
||||||
error("what in the hell is " + std::string(arg.type().name()));
|
error("what in the hell is " + std::string(arg.type().name()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user