Skip to content

Commit

Permalink
fix(server): cast rpc event array
Browse files Browse the repository at this point in the history
  • Loading branch information
Doxoh committed Feb 17, 2024
1 parent e4812d3 commit 133161b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/src/CSharpResourceImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
{
Expand Down

0 comments on commit 133161b

Please sign in to comment.