Skip to content

Commit

Permalink
[dev] better detection of double generation of button overlays
Browse files Browse the repository at this point in the history
  • Loading branch information
nroutasuo committed Mar 25, 2023
1 parent e938b3b commit 06a27dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/UIFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ define(['ash',
generateButtonOverlays: function (scope) {
$.each($(scope + " button.action"), function () {
let $btn = $(this);
if ($btn.find(".btn-label").length > 0) {
if ($btn.parent().hasClass("container-btn-action")) {
log.w("generating double button overlays: " + $(this) + " | " + scope);
return;
}
Expand Down

0 comments on commit 06a27dd

Please sign in to comment.