Skip to content

Commit

Permalink
fixup! fixup! always clear actions even if no entry is found
Browse files Browse the repository at this point in the history
  • Loading branch information
sogladev committed Oct 19, 2024
1 parent 4366b67 commit 2029f07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ptr_template.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -580,9 +580,9 @@ class createTemplate : public PlayerScript {
else
LOG_ERROR("module", "Failed to add hotbar spell {} on button {} with type {} for template character {}.", actionEntry, buttonEntry, typeEntry, player->GetGUID().ToString());
} while (barInfo->NextRow());
player->SendActionButtons(1);
}
player->SaveToDB(false, false); // Commit action buttons.
player->SendActionButtons(1);
}

static void AddTemplateLevel(Player* player, uint32 index)
Expand Down

0 comments on commit 2029f07

Please sign in to comment.