mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
Prefer prefix ++/-- on non-primitive types
Postfix ++/-- might cause the creation of a tmp instance that might be optimized out. Mights are bad. Prefix doesn't have this problem.
This commit is contained in:
+1
-1
@@ -793,7 +793,7 @@ void Client::SendZoneFlagInfo(Client *to) const {
|
||||
|
||||
to->Message(0, "Flags for %s:", GetName());
|
||||
|
||||
for(; cur != end; cur++) {
|
||||
for(; cur != end; ++cur) {
|
||||
uint32 zoneid = *cur;
|
||||
|
||||
const char *short_name = database.GetZoneName(zoneid);
|
||||
|
||||
Reference in New Issue
Block a user