From 47429e5081fdd4881328567f0a05efc426a964ca Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 4 Feb 2020 20:22:31 +0100 Subject: [PATCH] minimal refactor --- xSDL/xApplication.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xSDL/xApplication.cpp b/xSDL/xApplication.cpp index 25a5045..9293eae 100644 --- a/xSDL/xApplication.cpp +++ b/xSDL/xApplication.cpp @@ -281,8 +281,7 @@ void xApplication::render(){ /* 4. draw every sprite */ - set::iterator it; - for( it = _sprites.begin() ; it != _sprites.end() ; it++ ){ + for( set::iterator it = _sprites.begin() ; it != _sprites.end() ; it++ ){ xDrawable* sprite = *it; sprite->draw(_renderer); }