mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-01-31 05:30:40 +00:00
Fix -Wsequence-point warning
operation on ‘((idFileSystemLocal*)this)->idFileSystemLocal::dir_cache_index’ may be undefined
This commit is contained in:
parent
09f03c531a
commit
9d0e0d6fbc
1 changed files with 1 additions and 1 deletions
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue