Skip to content

Commit 152155e

Browse files
committed
fix exception
1 parent 4450b0b commit 152155e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Utility/ShowInventory.as

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ void onRender(CSprite@ this)
2525

2626
if (blob.getInventory() !is null) {
2727
if (blob.getTeamNum() == this.getBlob().getTeamNum()) {
28-
int coins = player.getCoins();
28+
if (blob.getPlayer() is null) return;
29+
30+
int coins = blob.getPlayer().getCoins();
2931
CInventory@ inv = blob.getInventory();
3032
if (inv is null) return;
3133

0 commit comments

Comments
 (0)