Skip to content

Commit b055528

Browse files
committed
Make Set, GetImpulseOffset take uint
1 parent 7ef1801 commit b055528

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
@@ -775,7 +775,7 @@ namespace RTE {
775775
/// Returns offset vector in METERS (not pixels) of the specified Impulse record.
776776
/// @param n Impulse record index to get data from.
777777
/// @return Offset vector in meters of the specified Impulse record.
778-
Vector GetImpulseOffset(int n) {
778+
Vector GetImpulseOffset(unsigned int n) {
779779
if (n > 0 && n < m_ImpulseForces.size())
780780
return m_ImpulseForces[n].second;
781781
else
@@ -792,7 +792,7 @@ namespace RTE {
792792

793793
/// Sets offset vector in METERS (not pixels) of the specified Impulse record.
794794
/// @param n Impulse record index to get data from. New Vector offset value in meters.
795-
void SetImpulseOffset(int n, Vector v) {
795+
void SetImpulseOffset(unsigned int n, Vector v) {
796796
if (n > 0 && n < m_ImpulseForces.size())
797797
m_ImpulseForces[n].second = v;
798798
}

0 commit comments

Comments
 (0)