I have 4 weapon classes that extend the basic Weapon class, but when I do something like the example below, I’m getting an error. I haven’t hard coded much in the last few years, but this is usually valid… Pointers, please?
Just to note that using Variant as a return type solves the above. It’s working fine that way, but shouldn’t using the base class Weapon work too? I think so.
FWIW, in my project that method is used in a different class (each toon has its own weapon, thus the method). Still, when written like below, the problem remains.
I’m guessing you’re also on 4.2.1.stable? Is there some setting I might have tripped?