Minor code and compiler warning fixes.

This commit is contained in:
KayenEQ
2014-11-02 20:14:44 -05:00
parent c9073b10a1
commit d754e24a02
5 changed files with 44 additions and 26 deletions
+1 -1
View File
@@ -1902,7 +1902,7 @@ void ZoneDatabase::FillAAEffects(SendAA_Struct* aa_struct){
auto it = aa_effects.find(aa_struct->id);
if (it != aa_effects.end()) {
for (int slot = 0; slot < aa_struct->total_abilities; slot++) {
for (uint32 slot = 0; slot < aa_struct->total_abilities; slot++) {
// aa_effects is a map of a map, so the slot reference does not start at 0
aa_struct->abilities[slot].skill_id = it->second[slot + 1].skill_id;
aa_struct->abilities[slot].base1 = it->second[slot + 1].base1;