sajty/ember — comment on commit 6a30ef9cba35617598ec84978df32966e2af17b9
File:  line 0
By erikhjortsberg:

This is not correct. mTerrainManager is an instance of IHeightProvider and no cast is needed.
You mentioned that you got the error "The value of ESP was not properly saved...". A more plausible explanation is that you had stale object files which hadn't been recompiled after IHeightProvider was split off into a discrete interface. Could you revert this commit, clean out all of your build artifacts, recompile with a clean directory, and see if you get any issues?