From 97850c8def40a9acf3d07d5d2574ee3e29e11368 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Wed, 15 Feb 2017 17:34:48 +0100 Subject: [PATCH] Use countof with textures too --- src/pixmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pixmap.cpp b/src/pixmap.cpp index 506f8c7..d4a37fe 100644 --- a/src/pixmap.cpp +++ b/src/pixmap.cpp @@ -62,7 +62,7 @@ CPixmap::~CPixmap() } } - for (i = 0 ; i < MAXIMAGE ; i++) + for (i = 0 ; i < countof (m_lpSDLTexture) ; i++) { if (m_lpSDLTexture[i] != nullptr) {