diff options
author | Andrey Nazarov <skuller@skuller.net> | 2007-08-22 17:23:57 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2007-08-22 17:23:57 +0000 |
commit | 1bef88894b7d80308460f480fb84958f65922e02 (patch) | |
tree | c7d6cd2b9a0bad7405ca75b79eda9df2d6471bac /source/cl_main.c | |
parent | e6f9f100490b454a271f69f4af58eafbde92a87d (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.c | 2 |
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 ); } |