diff options
Diffstat (limited to 'webAO/client.js')
| -rw-r--r-- | webAO/client.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/webAO/client.js b/webAO/client.js index a26c6c3..7f14aed 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -1132,8 +1132,16 @@ class Client extends EventEmitter { for (let i = 1; i <= ini.emotions.number; i++) { try { const emoteinfo = ini.emotions[i].split("#"); - const esfx = ini.soundn[i] || "0"; - const esfxd = Number(ini.soundt[i]) || 0; + let esfx; + let esfxd; + try { + esfx = ini.soundn[i] || "0"; + esfxd = Number(ini.soundt[i]) || 0; + } catch (e) { + console.warn("ini sound is completly missing"); + esfx = "0"; + esfxd = 0; + } // Make sure the asset server is case insensitive, or that everything on it is lowercase emotes[i] = { desc: emoteinfo[0].toLowerCase(), |
