Skip to content

Commit af7eb44

Browse files
authored
Merge pull request #48 from Valforte/main
Deploy
2 parents 24ed4e9 + 3cb5a8a commit af7eb44

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

src/DMTable.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ function addNewCondition(combatant: Combatant, name: string, value: number): voi
5252
}
5353
5454
function removeCombatant(i: number): void {
55-
props.combatants.splice(i, 1)
5655
emit('removeCombatant', i)
5756
}
5857

src/InitiativeManager.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ function addCombatant(name: string, HP: number, initiative: number, visibility:
314314
}
315315
316316
function removeCombatant(index: number): void {
317+
combatants.value.splice(index, 1)
317318
if (index < turn.value) {
318319
turn.value -= 1
319320
} else if (index == combatants.value.length) {

0 commit comments

Comments
 (0)