mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-01 02:14:32 +07:00
Fixes crash when opening HirelingPanel before items have finished loading
This commit is contained in:
parent
d8ff97e4a5
commit
a8999db873
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user