Upon inspection I noticed the method takes in a float pointer as parameter, which is then assigned in the actual method. The return type is also incorrect as it still crashes because a CVector is not returned. With the following adjustments I have managed to get it to work:
The function call in this method is incorrect and causes my application to crash:
Upon inspection I noticed the method takes in a float pointer as parameter, which is then assigned in the actual method. The return type is also incorrect as it still crashes because a CVector is not returned. With the following adjustments I have managed to get it to work:
Also, the following 2 methods suffer from the same issue:
CPlaceable::GetRightDirection()
CPlaceable::GetTopDirection()