mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-04 07:17:26 +07:00
Fixes crash when opening HirelingPanel before items have finished loading
This commit is contained in:
@ -367,7 +367,7 @@ public class HirelingPanel extends WidgetGroup implements Disposable {
|
||||
}
|
||||
|
||||
// FIXME: Alt images on weapons are slightly off by maybe a pixel or so (rounding?) -- backgrounds fine
|
||||
if (item != null) {
|
||||
if (item != null && item.checkLoaded()) {
|
||||
BBox box = item.invFile.getBox();
|
||||
item.setPosition(
|
||||
getX() + getWidth() / 2 - box.width / 2f + x,
|
||||
|
Reference in New Issue
Block a user