From 9b16bc7c67beba66adbfab06c449d3f83c2f1ece Mon Sep 17 00:00:00 2001 From: Bruno Van de Velde Date: Mon, 20 Mar 2017 01:14:05 +0100 Subject: [PATCH] Fixed typo in assert in Texture::update --- src/SFML/Graphics/Texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Graphics/Texture.cpp b/src/SFML/Graphics/Texture.cpp index 2caba165..a3eb1234 100644 --- a/src/SFML/Graphics/Texture.cpp +++ b/src/SFML/Graphics/Texture.cpp @@ -447,7 +447,7 @@ void Texture::update(const Texture& texture) void Texture::update(const Texture& texture, unsigned int x, unsigned int y) { assert(x + texture.m_size.x <= m_size.x); - assert(y + texture.m_size.x <= m_size.y); + assert(y + texture.m_size.y <= m_size.y); if (!m_texture || !texture.m_texture) return;