Core/Movement: add missing parenthesis on MotionMaster::Size

pretty sure this can cause unexpected behaviour
This commit is contained in:
ccrs
2019-07-09 15:25:25 +02:00
parent 76beda3768
commit bec52dba3d

View File

@@ -120,7 +120,7 @@ bool MotionMaster::Empty() const
uint32 MotionMaster::Size() const
{
return _defaultGenerator ? 1 : 0 + uint32(_generators.size());
return (_defaultGenerator ? 1 : 0) + uint32(_generators.size());
}
std::vector<MovementGeneratorInformation> MotionMaster::GetMovementGeneratorsInformation() const