I'm having a really strange bug right now.
I'm creating a new weapon that inherits from an abstract weapon class I did.
The abstract class has a custom property, let's call it X, and a Log function in it's Tick() function for debugging.
The bug is, that if I change the X value by using <self.X> in the new weapon, the Log function shows me the var value changes and resets to the default value in a loop, here's a self-explanatory image:
Spoiler:So, IF I move the Log function into the Tick() of the new weapon class instead of the abstract, the reading is cohesive, shows that same variable has changed and does not reset / keeps the new value correctly.
And no, I'm not touching this variable from another place, I already checked that.
What is happening here?
I'm using gzdoom 4.5.0.