Fix -Wsequence-point warning

operation on
‘((idFileSystemLocal*)this)->idFileSystemLocal::dir_cache_index’
may be undefined
This commit is contained in:
dhewg 2011-12-01 00:18:25 +01:00
parent 09f03c531a
commit 9d0e0d6fbc

View file

@ -1874,7 +1874,7 @@ int idFileSystemLocal::ListOSFiles( const char *directory, const char *extension
// push a new entry
dir_cache[dir_cache_index].Init( directory, extension, list );
dir_cache_index = (++dir_cache_index) % MAX_CACHED_DIRS;
dir_cache_index = (dir_cache_index + 1) % MAX_CACHED_DIRS;
if ( dir_cache_count < MAX_CACHED_DIRS ) {
dir_cache_count++;
}