From f30c2871fcbe031b844ccf7c4c3d4d81f92f9397 Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Wed, 24 Feb 2010 17:23:32 +0000 Subject: [PATCH] FS#157 - Disable implicit conversion from sf::Image to sf::Sprite git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1425 4e206d99-4929-0410-ac5d-dfc041789085 --- include/SFML/Graphics/Sprite.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SFML/Graphics/Sprite.hpp b/include/SFML/Graphics/Sprite.hpp index d5d835e04..9d47bb44a 100644 --- a/include/SFML/Graphics/Sprite.hpp +++ b/include/SFML/Graphics/Sprite.hpp @@ -61,7 +61,7 @@ public : /// \param Col : Color of the sprite (white by default) /// //////////////////////////////////////////////////////////// - Sprite(const Image& Img, const Vector2f& Position = Vector2f(0, 0), const Vector2f& Scale = Vector2f(1, 1), float Rotation = 0.f, const Color& Col = Color(255, 255, 255, 255)); + explicit Sprite(const Image& Img, const Vector2f& Position = Vector2f(0, 0), const Vector2f& Scale = Vector2f(1, 1), float Rotation = 0.f, const Color& Col = Color(255, 255, 255, 255)); //////////////////////////////////////////////////////////// /// Change the image of the sprite