Avoid Divide by zero fix

Line 1026
Line 922
This commit is contained in:
ChocoTaco 2021-06-27 18:41:47 -04:00
parent f1def5318a
commit b428275e9b

4
Classic/scripts/dtChatCmdGame.cs Normal file → Executable file
View file

@ -919,7 +919,7 @@ function fireworksSky(%sky)
function fireworkLoop() function fireworkLoop()
{ {
if($CurrentSky !$= "fireworks") if($CurrentSky !$= "fireworks" || !ClientGroup.getCount())
return; return;
// find a random client. // find a random client.
@ -1023,7 +1023,7 @@ function spookySky(%sky)
function spookyFireworkLoop() function spookyFireworkLoop()
{ {
if($CurrentSky !$= "spookySky") if($CurrentSky !$= "spookySky" || !ClientGroup.getCount())
return; return;
// find a random client. // find a random client.