diff --git a/bindings/ruby/sfml-system/system/Vector2.cpp b/bindings/ruby/sfml-system/system/Vector2.cpp index b3f0abca..3add5ea0 100644 --- a/bindings/ruby/sfml-system/system/Vector2.cpp +++ b/bindings/ruby/sfml-system/system/Vector2.cpp @@ -184,8 +184,8 @@ static VALUE Vector2_Equal( VALUE self, VALUE anArgument ) VALUE aVector = Vector2_ForceType( anArgument ); VALUE leftX = Vector2_GetX( self ); VALUE leftY = Vector2_GetY( self ); - VALUE rightX = Vector2_GetX( rightVector ); - VALUE rightY = Vector2_GetY( rightVector ); + VALUE rightX = Vector2_GetX( aVector ); + VALUE rightY = Vector2_GetY( aVector ); if( rb_funcall( leftX, rb_intern( "==" ), 1, rightX ) == Qtrue && rb_funcall( leftY, rb_intern( "==" ), 1, rightY ) == Qtrue ) @@ -204,8 +204,8 @@ static VALUE Vector2_StrictEqual( VALUE self, VALUE anArgument ) VALUE aVector = Vector2_ForceType( anArgument ); VALUE leftX = Vector2_GetX( self ); VALUE leftY = Vector2_GetY( self ); - VALUE rightX = Vector2_GetX( rightVector ); - VALUE rightY = Vector2_GetY( rightVector ); + VALUE rightX = Vector2_GetX( aVector ); + VALUE rightY = Vector2_GetY( aVector ); if( rb_funcall( leftX, rb_intern( "eql?" ), 1, rightX ) == Qtrue && rb_funcall( leftY, rb_intern( "eql?" ), 1, rightY ) == Qtrue ) diff --git a/bindings/ruby/sfml-system/system/Vector3.cpp b/bindings/ruby/sfml-system/system/Vector3.cpp index 214b6387..b17fde20 100644 --- a/bindings/ruby/sfml-system/system/Vector3.cpp +++ b/bindings/ruby/sfml-system/system/Vector3.cpp @@ -212,9 +212,9 @@ static VALUE Vector3_Equal( VALUE self, VALUE anArgument ) VALUE leftX = Vector3_GetX( self ); VALUE leftY = Vector3_GetY( self ); VALUE leftZ = Vector3_GetZ( self ); - VALUE rightX = Vector3_GetX( rightVector ); - VALUE rightY = Vector3_GetY( rightVector ); - VALUE rightZ = Vector3_GetZ( rightVector ); + VALUE rightX = Vector3_GetX( aVector ); + VALUE rightY = Vector3_GetY( aVector ); + VALUE rightZ = Vector3_GetZ( aVector ); if( rb_funcall( leftX, rb_intern( "==" ), 1, rightX ) == Qtrue && rb_funcall( leftY, rb_intern( "==" ), 1, rightY ) == Qtrue && @@ -235,9 +235,9 @@ static VALUE Vector3_StrictEqual( VALUE self, VALUE anArgument ) VALUE leftX = Vector3_GetX( self ); VALUE leftY = Vector3_GetY( self ); VALUE leftZ = Vector3_GetZ( self ); - VALUE rightX = Vector3_GetX( rightVector ); - VALUE rightY = Vector3_GetY( rightVector ); - VALUE rightZ = Vector3_GetZ( rightVector ); + VALUE rightX = Vector3_GetX( aVector ); + VALUE rightY = Vector3_GetY( aVector ); + VALUE rightZ = Vector3_GetZ( aVector ); if( rb_funcall( leftX, rb_intern( "eql?" ), 1, rightX ) == Qtrue && rb_funcall( leftY, rb_intern( "eql?" ), 1, rightY ) == Qtrue &&