Fix a log's number

The log for the run in slot 1 didn't have a label, since its ID was 0 and, therefore, "if data.slotId" returned false
This commit is contained in:
RedstonewolfX 2024-07-30 13:56:10 -04:00
parent 23ed38f8c5
commit 1fcdfd26f9

View File

@ -285,7 +285,7 @@ class SessionSlot extends Phaser.GameObjects.Container {
this.remove(this.loadingLabel, true);
var lbl = `???`
lbl = data.title
if (this.slotId) {
if (this.slotId != undefined) {
lbl = `[${this.slotId + 1}] ${lbl}`
}
console.log(data, this.slotId, this.autoSlot, lbl)