Is the variable for your SavedVars properly initialized before this?
The error is happening because either Imperialization is nil or Imperialization.savedVariables is nil.
(Also check for typo in those two. Always happens when you least expect it...)
Last edited by Sasky : 06/22/14 at 11:57 PM.
|