From b2a76df49c6c4753b33c0cee2674a15436863321 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Mon, 19 Aug 2019 18:54:22 +0200 Subject: some people put an empty SoundN in their inis --- webAO/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'webAO') diff --git a/webAO/client.js b/webAO/client.js index 1316eaa..ed2d575 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -890,8 +890,8 @@ class Client extends EventEmitter { updateActionCommands(me.side); for (let i = 1; i <= ini.Emotions.number; i++) { const emoteinfo = ini.Emotions[i].split("#"); - const esfx = ini.SoundN ? ini.SoundN[i] : "0"; - const esfxd = ini.SoundT ? ini.SoundT[i] : "0"; + const esfx = ini.SoundN[i] ? ini.SoundN[i] : "0"; + const esfxd = ini.SoundT[i] ? ini.SoundT[i] : "0"; // Make sure the asset server is case insensitive, or that everything on it is lowercase emotes[i] = { desc: emoteinfo[0].toLowerCase(), -- cgit