fixed bug at26580

This commit is contained in:
David Anderson 2006-03-14 10:01:35 +00:00
parent 9c88ce1394
commit 7dae023a98

View File

@ -313,7 +313,7 @@ static cell AMX_NATIVE_CALL dir_exists(AMX *amx, cell *params) /* 1 param */
if (attr == INVALID_FILE_ATTRIBUTES)
return 0;
if (attr == FILE_ATTRIBUTE_DIRECTORY)
if (attr & FILE_ATTRIBUTE_DIRECTORY)
return 1;
return 0;