1
0
forked from 0ad/0ad

vfs: fixed an apparently untested "quick change" to an assert that was triggering. boo!

This was SVN commit r1704.
This commit is contained in:
janwas 2005-01-10 22:51:08 +00:00
parent 963c56e796
commit 629e5999e0

View File

@ -597,7 +597,7 @@ enum TreeLookupFlags
static int tree_lookup_dir(const char* path, TDir** pdir, uint flags = 0, char* exact_path = 0)
{
CHECK_PATH(path);
assert(!(flags & ~LF_CREATE_MISSING|LF_START_DIR));
assert(flags & ~(LF_CREATE_MISSING|LF_START_DIR) == 0);
// no undefined bits set
// can't check if path ends in '/' here - we're called via tree_lookup.