“I am both admin and user, you can’t defeat me”, says the Linux moment
It’s a pseudo code, it’s there to demonstrate what’s going on. That code alone gave me some contexts behind (Correct me if I’m wrong): The executed code results the isUserAdmin to be both True and False, even when this variable is already assigned with True. Like it doesn’t care at all.
It was a case of “undefined behaviour” in C++ when dereferencing a NULL pointer (which was intended, I was actually trying to make the game crash). But I was wrong in thinking that dereferencing will always crash – it might instead do crazy stuff like it did in this case. “Crazy stuff” is always theoretically allowed, but I had never seen an actual practical case of craziness until now. Live and learn.