diff options
| author | stonedDiscord <Tukz@gmx.de> | 2026-04-09 21:37:43 +0200 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2026-04-09 21:37:47 +0200 |
| commit | 917d51d69751aad15401a8a33f59b6ce3d33d931 (patch) | |
| tree | 276c22ab02a13a41f40059edac7de293acdee4b5 /webAO | |
| parent | 4be4f4665fe03a0267ac88c36f0e3b73d8fc2d48 (diff) | |
fix layton sfx
Diffstat (limited to 'webAO')
| -rw-r--r-- | webAO/packets/handlers/handlePV.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/webAO/packets/handlers/handlePV.ts b/webAO/packets/handlers/handlePV.ts index 90e47f1..0865fe8 100644 --- a/webAO/packets/handlers/handlePV.ts +++ b/webAO/packets/handlers/handlePV.ts @@ -60,10 +60,10 @@ export const handlePV = async (args: string[]) => { let esfx; let esfxd; try { - esfx = ini.soundn[i] || "0"; - esfxd = Number(ini.soundt[i]) || 0; + esfx = ini.soundn?.[i] || "0"; + esfxd = ini.soundt?.[i] ? Number(ini.soundt[i]) : 0; } catch (e) { - console.warn("ini sound is completly missing"); + console.warn(`ini sound is completly missing: ${e}`); esfx = "0"; esfxd = 0; } |
