mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-01 20:05:41 +00:00
Post instead of pre increment a variable.
Issue found by cppcheck.
This commit is contained in:
parent
4904b14073
commit
916da29ec9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user