Skip to content

Commit ef15059

Browse files
committed
Make Set, GetImpulseVector take uint as argument
1 parent 0389edc commit ef15059

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Entities/MovableObject.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ namespace RTE {
765765
/// Returns Impulse vector in newtons of the specified Impulse record.
766766
/// @param n Impulse record index to get data from.
767767
/// @return Impulse vector in newtons of the specified Impulse record.
768-
Vector GetImpulseVector(int n) {
768+
Vector GetImpulseVector(unsigned int n) {
769769
if (n > 0 && n < m_ImpulseForces.size())
770770
return m_ImpulseForces[n].first;
771771
else
@@ -785,7 +785,7 @@ namespace RTE {
785785
/// Returns offset vector in METERS (not pixels) of the specified Impulse record.
786786
/// @param n Impulse record index to get data from.
787787
/// @return Offset vector in meters of the specified Impulse record.
788-
void SetImpulseVector(int n, Vector v) {
788+
void SetImpulseVector(unsigned int n, Vector v) {
789789
if (n > 0 && n < m_ImpulseForces.size())
790790
m_ImpulseForces[n].first = v;
791791
}

0 commit comments

Comments
 (0)