Skip to content

Commit

Permalink
fix: setting same portrait twice in a row causing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
seleb committed Jul 24, 2020
1 parent f627122 commit b7b55ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/character portraits.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@file character portraits
@summary high quality anime jpegs (or pngs i guess)
@license MIT
@version 2.1.0
@version 2.1.1
@requires Bitsy Version: 5.3
@author Sean S. LeBlanc
Expand Down Expand Up @@ -81,6 +81,7 @@ addDialogTag('portrait', function (environment, parameters, onReturn) {
var newPortrait = parameters[0];
var image = state.portraits[newPortrait];
if (state.portrait === image) {
onReturn(null);
return;
}
state.portrait = image;
Expand Down

0 comments on commit b7b55ac

Please sign in to comment.