projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[cppcheck] Part 1: Performance
[supertux.git]
/
src
/
badguy
/
totem.cpp
diff --git
a/src/badguy/totem.cpp
b/src/badguy/totem.cpp
index
5941a1b
..
42afee2
100644
(file)
--- a/
src/badguy/totem.cpp
+++ b/
src/badguy/totem.cpp
@@
-86,7
+86,7
@@
Totem::active_update(float elapsed_time)
Sector* s = Sector::current();
if (s) {
// jump a bit if we find a suitable totem
Sector* s = Sector::current();
if (s) {
// jump a bit if we find a suitable totem
- for (std::vector<MovingObject*>::iterator i = s->moving_objects.begin(); i != s->moving_objects.end();
i++
) {
+ for (std::vector<MovingObject*>::iterator i = s->moving_objects.begin(); i != s->moving_objects.end();
++i
) {
Totem* t = dynamic_cast<Totem*>(*i);
if (!t) continue;
Totem* t = dynamic_cast<Totem*>(*i);
if (!t) continue;