From: Cameron Ball Date: Tue, 10 Dec 2013 05:18:56 +0000 (+0800) Subject: Can't just use assert like that, when the screen is reloaded it will be unable to... X-Git-Url: https://git.cameron1729.xyz/?a=commitdiff_plain;h=ced13ed5eb43fe1c0807953e50790eeccd21f346;p=GrooveNights.git Can't just use assert like that, when the screen is reloaded it will be unable to reregister the variable. --- diff --git a/Themes/GrooveNights/Scripts/Globals.lua b/Themes/GrooveNights/Scripts/Globals.lua index ccd2883..9395d78 100644 --- a/Themes/GrooveNights/Scripts/Globals.lua +++ b/Themes/GrooveNights/Scripts/Globals.lua @@ -36,7 +36,6 @@ local SongLength = GetGlobal("TotalTime") local GlobalsTable = {} function RegisterGlobal(Actor, Name) - assert(GlobalsTable[Name] == nil, "Cannot register actor ".. Name .. ". It has already been registered") GlobalsTable[Name] = Actor:GetText() end