Verify stat result
diff --git a/src/engine/server/serverCommunity.cpp b/src/engine/server/serverCommunity.cpp
index c1911ad..8f5b305 100644
--- a/src/engine/server/serverCommunity.cpp
+++ b/src/engine/server/serverCommunity.cpp
@@ -512,10 +512,9 @@ sint idServerCommunityServer::CheckUserFileChange( void )
valueType* filename, filesrc[1024], filedst[1024];
filename = fileSystem->GetFullGamePath( "cs_users.new" );
- ::stat( filename, &st );
// Check for file real time modifications
- if( ::time( nullptr ) - st.st_mtime > 10 )
+ if( ::stat( filename, &st ) != -1 && ::time( nullptr ) - st.st_mtime > 10 )
{
if( file_user_last_modified < st.st_mtime )
{
GitHub
sha: 11705b38