Live Build Failed

Hello, I am having a Live Building fail that I can’t seem to figure out. I have copied the video. Here are the screenshots of the code and I’ve copied the live coding log.




ShouldPlatformReturn is a const member function and it’s trying to call a non-const function (GetDistancedMoved) which would invalidate the constness.
A const member function says “I will not modify class members” non-const member functions say the opposite “I will modify class members” regardless whether or not it does (the compiler can’t always know)

You should make GetDistancedMoved() const

Thanks, works great now!

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms