From 133161b34d0a1891b9c4c204fba0f523fe5b57fe Mon Sep 17 00:00:00 2001 From: doxoh Date: Sat, 17 Feb 2024 11:11:52 +0100 Subject: [PATCH] fix(server): cast rpc event array --- server/src/CSharpResourceImpl.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/src/CSharpResourceImpl.cpp b/server/src/CSharpResourceImpl.cpp index b875e36..8332153 100644 --- a/server/src/CSharpResourceImpl.cpp +++ b/server/src/CSharpResourceImpl.cpp @@ -853,7 +853,12 @@ case alt::CEvent::Type::SYNCED_META_CHANGE: auto name = scriptRPCEvent->GetName(); auto args = scriptRPCEvent->GetArgs(); auto size = args.size(); + +#ifdef _WIN32 auto constArgs = new alt::MValueConst*[size]; +#else + alt::MValueConst* constArgs[size]; +#endif for (uint64_t i = 0; i < size; i++) {