check for null comms before using

This commit is contained in:
ehouse 2005-03-25 03:13:10 +00:00
parent 99f2804141
commit 3e281299ed

View file

@ -273,7 +273,9 @@ createOrLoadObjects( GtkAppGlobals* globals, GtkWidget *widget )
sizeof(addr.u.ip_relay.cookie) - 1 );
/* This may trigger network activity */
comms_setAddr( globals->cGlobals.game.comms, &addr );
if ( !!globals->cGlobals.game.comms ) {
comms_setAddr( globals->cGlobals.game.comms, &addr );
}
model_setDictionary( globals->cGlobals.game.model, params->dict );