mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-01 14:02:18 +02:00
Fix voucher screen crash
This commit is contained in:
parent
89de4b511b
commit
737499b1e9
@ -205,7 +205,7 @@ export default class VouchersUiHandler extends MessageUiHandler {
|
|||||||
|
|
||||||
this.updateVoucherIcons();
|
this.updateVoucherIcons();
|
||||||
|
|
||||||
this.showVoucher(vouchers[Object.keys(vouchers)[this.cursor + this.scrollCursor * itemCols]]);
|
this.showVoucher(vouchers[Object.keys(vouchers)[Math.min(this.cursor + this.scrollCursor * itemCols, Object.values(vouchers).length - 1)]]);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user