Pass by reference variables in custom events

I just ran headfirst into this bug in a bizarre situation: Subclassing.

So


void BPBaseClass::Test(UParam(Ref) FStruct& A)

is a function in BPBaseClass Everything works fine, “FStruct& A” is passed successfully.

Now if we override Test() in BPSubClass, that function gets turned into an Event since it does not have a return value (WHY?? EPIC WHY??), which breaks because “FStruct& A” cannot be passed by ref in Event.

And that took me a whole day to debug and fix up everything in the subclass chain. Seriously, fix up this inconsistent **** will ya.

============

Edit: Found the issue ticket for “function getting turned into event”, which is fixed by 4.24.