Sparkles or Firework. What was first? Discover it by yourself: http://i.imgur.com/6UgxIsB.png - Now only makeshift textures and materials for Firework model left to do and I can render it in 2K.
I think we should find some automated way to place such safeguards in CBot code or at least detect where these unsafe calls are used and correct them manually.
This happens when you call a non-static, non-virtual method on null pointer. Since they are usually implemented as normal functions with hidden pointer, nullptr is simply passed to it and called as usual.
Comparing this to nullptr means there's a severe problem in your code because something like this should never happen in the first place. It's a play on undefined behavior.
Quite interesting, comparing to nullptr is very common in code, but it was never optimized out from it. Or at least it didn't make such impossible to overlook results.