diff --git a/src/zr/models.inc b/src/zr/models.inc index 359f3eb..e735f12 100644 --- a/src/zr/models.inc +++ b/src/zr/models.inc @@ -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); -} \ No newline at end of file +}