Fixed crash when changing dt1 which was viewing non-zero tile index

This commit is contained in:
Collin Smith 2021-07-16 17:48:58 -07:00
parent 2b97989095
commit f96505ecb5

View File

@ -1580,6 +1580,10 @@ public class MPQViewer {
@Override
protected void changed(ChangeEvent event, Actor actor) {
if (delegate == null) {
return;
}
if (actor == slFrameIndex) {
int id = (int) slFrameIndex.getValue();
delegate.setRegion(dt1.getTexture(id));