Fixed directory memory leak.

This commit is contained in:
richard 2009-10-26 01:42:15 +01:00
parent 7833615363
commit b856e69223
1 changed files with 3 additions and 1 deletions

View File

@ -148,6 +148,8 @@ ModelsLoad()
modelfilecount++;
}
CloseHandle(modeldir);
// Increment variable if model files are valid.
if (modelfilecount)
{
@ -318,4 +320,4 @@ stock ModelsGetRandomModelIndex(String:modelpath[], maxlen, bool:all = true, boo
// Get the path to the selected model.
ModelReturnPath(modelindex, modelpath, maxlen);
}
}