From c96815493451dda42e7115c3adbdc97dc7a70f13 Mon Sep 17 00:00:00 2001 From: Angen Date: Wed, 1 Apr 2020 18:17:48 +0000 Subject: [PATCH] Explicitly return "undefined" when requesting Splash data in Attack.js Compared to other occurrences in code base, it makes sense to return undefined rather then just empty return. Differential Revision: https://code.wildfiregames.com/D2665 Patch by: Freagarach This was SVN commit r23563. --- binaries/data/mods/public/simulation/components/Attack.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binaries/data/mods/public/simulation/components/Attack.js b/binaries/data/mods/public/simulation/components/Attack.js index 72fa586b18..f938f43cdb 100644 --- a/binaries/data/mods/public/simulation/components/Attack.js +++ b/binaries/data/mods/public/simulation/components/Attack.js @@ -417,7 +417,7 @@ Attack.prototype.GetTimers = function(type) Attack.prototype.GetSplashData = function(type) { if (!this.template[type].Splash) - return; + return undefined; return { "attackData": this.GetAttackEffectsData(type, true),