Skip to content

Commit

Permalink
Revert "fix(handling-loader): fix broken physics"
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgrimshaw authored Feb 6, 2025
1 parent cf73c44 commit 40dc89b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/components/handling-loader-five/src/HandlingLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,17 +334,17 @@ static void SetHandlingDataInternal(fx::ScriptContext& context, CHandlingData* h
switch (member->m_definition->type)
{
case rage::parMemberType::Float:
setFloatField(handlingChar, offset, context.CheckArgument<float>(3), handlingField);
setFloatField(handlingChar, offset, context.GetArgument<float>(3), handlingField);
break;

case rage::parMemberType::UInt8:
*(uint8_t*)(handlingChar + offset) = uint8_t(context.CheckArgument<int>(3));
*(uint8_t*)(handlingChar + offset) = uint8_t(context.GetArgument<int>(3));
break;

case rage::parMemberType::UInt32:
// every string field (so far) is parsed to an int in memory
case rage::parMemberType::String:
setIntField(handlingChar, offset, context.CheckArgument<int>(3), handlingField);
setIntField(handlingChar, offset, context.GetArgument<int>(3), handlingField);
break;

case rage::parMemberType::Vector3_Padded:
Expand Down

0 comments on commit 40dc89b

Please sign in to comment.