summaryrefslogtreecommitdiff
path: root/source/cl_main.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2007-08-22 17:23:57 +0000
committerAndrey Nazarov <skuller@skuller.net>2007-08-22 17:23:57 +0000
commit1bef88894b7d80308460f480fb84958f65922e02 (patch)
treec7d6cd2b9a0bad7405ca75b79eda9df2d6471bac /source/cl_main.c
parente6f9f100490b454a271f69f4af58eafbde92a87d (diff)
FS_ExtCmp now correctly handles complex extensions, e.g. '.dm2.gz'.
Fixed NULL pointer dereference when CL_Disconnect is called before client finishes initialization.
Diffstat (limited to 'source/cl_main.c')
-rw-r--r--source/cl_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/cl_main.c b/source/cl_main.c
index bc04446..2441e8c 100644
--- a/source/cl_main.c
+++ b/source/cl_main.c
@@ -641,7 +641,7 @@ This is also called on Com_Error, so it shouldn't cause any errors
=====================
*/
void CL_Disconnect( comErrorType_t type, const char *text ) {
- if ( cls.state != ca_disconnected ) {
+ if ( cls.state > ca_disconnected ) {
EXEC_TRIGGER( cl_disconnectcmd );
}