mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-24 16:29:27 +02:00
[P1 Bug] Fix party UI crash from unsanitized lastCursor
This commit is contained in:
parent
d01d856898
commit
431d6d384f
@ -671,6 +671,9 @@ export default class PartyUiHandler extends MessageUiHandler {
|
|||||||
} else if (this.cursor === 6) {
|
} else if (this.cursor === 6) {
|
||||||
this.partyCancelButton.select();
|
this.partyCancelButton.select();
|
||||||
}
|
}
|
||||||
|
if (this.lastCursor < 6 && this.lastCursor >= party.length) {
|
||||||
|
this.lastCursor = party.length - 1;
|
||||||
|
}
|
||||||
|
|
||||||
for (const p in party) {
|
for (const p in party) {
|
||||||
const slotIndex = parseInt(p);
|
const slotIndex = parseInt(p);
|
||||||
|
Loading…
Reference in New Issue
Block a user