Skip to content

Commit

Permalink
bug fix for recursive UFunction invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
rowechien committed May 11, 2020
1 parent b33c540 commit ecd390e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ int32 FFunctionDesc::CallUE(lua_State *L, int32 NumParams, void *Userdata)

// call the UFuncton...
#if !SUPPORTS_RPC_CALL && !WITH_EDITOR
if (FinalFunction == Function && FinalFunction->HasAnyFunctionFlags(FUNC_Native))
if (FinalFunction == Function && FinalFunction->HasAnyFunctionFlags(FUNC_Native) && NumCalls == 1)
{
//FMemory::Memzero((uint8*)Params + FinalFunction->ParmsSize, FinalFunction->PropertiesSize - FinalFunction->ParmsSize);
uint8* ReturnValueAddress = FinalFunction->ReturnValueOffset != MAX_uint16 ? (uint8*)Params + FinalFunction->ReturnValueOffset : nullptr;
Expand Down

0 comments on commit ecd390e

Please sign in to comment.