}
// prevent sending the welcome message again when score types are sent again because the scoring system has changed
// it can happen in some game modes like Race when the qualyfing session ends and the race starts
- bool welcome_msg_too = (time < CS(this).jointime + 5);
+ // NOTE: CS(this) is not initialized yet when a local client connects to a local dedicated server
+ bool welcome_msg_too = (!CS(this) || time < CS(this).jointime + 5);
WriteByte(MSG_ENTITY, welcome_msg_too);
// welcome message is sent here because it needs to know the gametype
if (welcome_msg_too)