Merge branch 'master' of https://github.com/chocolate-doom/chocolate-doom
This commit is contained in:
commit
2f5571d72c
1 changed files with 5 additions and 0 deletions
|
|
@ -319,6 +319,11 @@ const char *I_NextGlob(glob_t *glob)
|
||||||
{
|
{
|
||||||
const char *result;
|
const char *result;
|
||||||
|
|
||||||
|
if (glob == NULL)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
// In unsorted mode we just return the filenames as we read
|
// In unsorted mode we just return the filenames as we read
|
||||||
// them back from the system API.
|
// them back from the system API.
|
||||||
if ((glob->flags & GLOB_FLAG_SORTED) == 0)
|
if ((glob->flags & GLOB_FLAG_SORTED) == 0)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue