Skip to content

Commit 7ef1801

Browse files
committed
Make LimbPath::GetCurrentSegmentNumber return uint
1 parent ef15059 commit 7ef1801

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Source/Entities/LimbPath.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,8 @@ namespace RTE {
333333
return prog / m_RegularLength;
334334
}
335335

336-
int LimbPath::GetCurrentSegmentNumber() const {
337-
int progress = 0;
336+
unsigned int LimbPath::GetCurrentSegmentNumber() const {
337+
unsigned int progress = 0;
338338
if (!m_Ended && !IsStaticPoint()) {
339339
for (std::deque<Vector>::const_iterator itr = m_Segments.begin(); itr != m_CurrentSegment; ++itr) {
340340
progress++;

Source/Entities/LimbPath.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ namespace RTE {
220220

221221
/// Gets the current segment as a number, rather than an iterator.
222222
/// @return The current segment as a number.
223-
int GetCurrentSegmentNumber() const;
223+
unsigned int GetCurrentSegmentNumber() const;
224224

225225
/// Sets a new array of 'waypoints' or segments of this LimbPath.
226226
/// @param newSpeed An int specifying how many segments there are in the following

0 commit comments

Comments
 (0)