Post instead of pre increment a variable.

Issue found by cppcheck.
This commit is contained in:
Mark de Wever 2009-10-02 19:27:41 +00:00
parent 4904b14073
commit 916da29ec9

View File

@ -250,7 +250,7 @@ namespace game_config
DBG_NG << "color palette creation:\n";
std::stringstream str;
str << id <<" = ";
for(std::vector<Uint32>::const_iterator r=tp.begin();r!=tp.end();r++){
for(std::vector<Uint32>::const_iterator r=tp.begin(); r!=tp.end(); ++r){
int red = ((*r) & 0x00FF0000)>>16;
int green = ((*r) & 0x0000FF00)>>8;
int blue = ((*r) & 0x000000FF);