Skip to content

Fixed off-by-one error in LoadGhosts - #553

Merged
Astralcircle merged 1 commit into
wiremod:masterfrom
andrijanbaer:master
Aug 27, 2026
Merged

Fixed off-by-one error in LoadGhosts#553
Astralcircle merged 1 commit into
wiremod:masterfrom
andrijanbaer:master

Conversation

@andrijanbaer

Copy link
Copy Markdown
Contributor

The LoadGhosts method in cl_ghost.lua currently begins filling the GhostToSpawn table at index 0, as opposed to the usual index 1 used in lua. This causes issues further down the line when using the '#' symbol to get the length of the table. The end result is that any dupes with more than 1 prop would always have one ghost missing.

@Astralcircle
Astralcircle merged commit e3ffa3c into wiremod:master Aug 27, 2026
1 check 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