Skip to content

Conversation

@bloodycop6385
Copy link
Contributor

A break statement was added after detecting a duplicate uniqueID in the class loading loop to prevent unnecessary iterations.

This pull request makes a minor fix to the ix.class.LoadFromDir function in gamemode/core/libs/sh_class.lua by adding a break statement after setting the halt flag. This ensures the loop stops immediately once a matching uniqueID is found, improving efficiency.

A break statement was added after detecting a duplicate uniqueID in the class loading loop to prevent unnecessary iterations.
@alexgrist alexgrist merged commit 442b002 into NebulousCloud:master Aug 19, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants