forked from Sidoine/Ovale
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(best-action): always use the correct texture for actions
The idiom that was used to set the texture was unnecessary when the variables were all local, but is plain wrong when using "result" fields because it would never overwrite a cached result's texture. Simplify by using a simple if-else statement to set the texture. This fixes the rest of issue Sidoine#749.
- Loading branch information
1 parent
07e4c75
commit 3dcf9c5
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters