From ced13ed5eb43fe1c0807953e50790eeccd21f346 Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Tue, 10 Dec 2013 13:18:56 +0800 Subject: [PATCH] Can't just use assert like that, when the screen is reloaded it will be unable to reregister the variable. --- Themes/GrooveNights/Scripts/Globals.lua | 1 - 1 file changed, 1 deletion(-) 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 -- 2.11.0