A little mistake by me. A warning from the compiler got me notified about it.

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1799 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
groogy 2011-02-13 18:10:46 +00:00
parent 1fad97be6d
commit 4813ca8d8e

View File

@ -451,7 +451,7 @@ static VALUE Drawable_Rotate( VALUE self, VALUE aRotation )
*/
static VALUE Drawable_TransformToLocal( VALUE self, VALUE aPoint )
{
VALUE point = Vector2_ForceType( point );
VALUE point = Vector2_ForceType( aPoint );
rbDrawable *object = NULL;
Data_Get_Struct( self, rbDrawable, object );
sf::Vector2f newPoint = object->TransformToLocal( sf::Vector2f( NUM2DBL( Vector2_GetX( point ) ),
@ -470,7 +470,7 @@ static VALUE Drawable_TransformToLocal( VALUE self, VALUE aPoint )
*/
static VALUE Drawable_TransformToGlobal( VALUE self, VALUE aPoint )
{
VALUE point = Vector2_ForceType(point);
VALUE point = Vector2_ForceType(aPoint);
rbDrawable *object = NULL;
Data_Get_Struct( self, rbDrawable, object );
sf::Vector2f newPoint = object->TransformToGlobal( sf::Vector2f( NUM2DBL( Vector2_GetX( point ) ),