haekb / nolf2-modernizer

NOLF 2 Modernizer aims to unlock resolution support, restore multi-player support, and fix a few bugs here and there.
https://haekb.itch.io/nolf2-modernizer
30 stars 4 forks source link

Fix all the dynamic_casts #64

Open haekb opened 4 years ago

haekb commented 4 years ago

So I discovered in https://github.com/haekb/nolf2-modernizer/issues/62 there's a technique they use to cast from a base type (or a similar type that has the same base type) up to a more specialized type. This works in Visual C++ 6.0, but not in anything else.

There's a code sample in that ticket that'll show how to reproduce the problem. So now I need to check every single dynamic_cast to make sure it'll work in newer compilers. Ugh.

haekb commented 4 years ago

Ok the extent of this issue isn't as huge as I thought it was. Small priority.