I'm having trouble working with a new custom class I want to create. Basically the class doesn't need to extend anything important, I just want to use it to store data and eventually create an array of the objects of this class. Here is how I am doing it:

Code:
//===============================================
// Setup custom class
//===============================================
class MyCustomClass extends Object;

var string msg;                 // Just some temp string for testing

defaultproperties
{

}
Then, in my custom gametype class, I am trying to use it like this:

Code:
//===============================================
// Setup new gametype
//===============================================
class MyGameType extends xDeathMatch;

var MyCustomClass obj1;                  // Custom class object

// Parse options for this game type
event InitGame( string Options, out string Error )
{
    Super.InitGame(Options, Error);

    obj1.msg = "THIS IS A TEST...............";
    Log($ obj1.msg);
}

defaultproperties
{

}[/
When I check the log file, the msg from the custom gametype is not output. It doesn't seem to work. I just get errors saying Accessed None 'obj1' and Attempt to assign variable through None. What am I doing wrong here? Any pointers?