mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-30 19:42:17 +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 parent
47c33f3b31
commit
4216627604
51 files changed
+405
-426
No files matched your search
@@ -1082,7 +1082,7 @@ bool Client::TradeskillExecute(DBTradeskillRecipe_Struct *spec) {
|
||||
}
|
||||
if(RuleB(TaskSystem, EnableTaskSystem))
|
||||
UpdateTasksForItem(ActivityTradeSkill, itr->first, itr->second);
|
||||
itr++;
|
||||
++itr;
|
||||
}
|
||||
return(true);
|
||||
} else {
|
||||
@@ -1103,7 +1103,7 @@ bool Client::TradeskillExecute(DBTradeskillRecipe_Struct *spec) {
|
||||
while(itr != spec->onfail.end()) {
|
||||
//should we check these arguments?
|
||||
SummonItem(itr->first, itr->second);
|
||||
itr++;
|
||||
++itr;
|
||||
}
|
||||
|
||||
// Rolls on each item, is possible to return everything
|
||||
@@ -1116,7 +1116,7 @@ bool Client::TradeskillExecute(DBTradeskillRecipe_Struct *spec) {
|
||||
for(sc = 0; sc < itr->second; sc++)
|
||||
if(MakeRandomInt(0,99) < SalvageChance)
|
||||
SummonItem(itr->first, 1);
|
||||
itr++;
|
||||
++itr;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user