Skip to content

CAPI: Fix legacy slots not being released for GZ and Pickups#1231

Merged
AmyrAhmady merged 1 commit into
openmultiplayer:masterfrom
markski1:main
Jun 7, 2026
Merged

CAPI: Fix legacy slots not being released for GZ and Pickups#1231
AmyrAhmady merged 1 commit into
openmultiplayer:masterfrom
markski1:main

Conversation

@markski1
Copy link
Copy Markdown
Contributor

@markski1 markski1 commented Jun 7, 2026

Fixes #1199

Currently attempts to release legacy id after real id is released, which destroys the gz and causes the legacy id to be -1. This patch first stores the legacy id to avoid this, which is how it seems to already be done for pawn (Gangzones/Natives.cpp line 44 to 58)

Disclaimer: I've been unable to test this because I cannot make conan and PyYAML play ball with my windows python env. I'll try again when I have time, but this seems straightforwards enough.

@AmyrAhmady AmyrAhmady merged commit 714fa7f into openmultiplayer:master Jun 7, 2026
13 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.

Gangzone IDs are never recycled after destroy, causing pool exhaustion after 1024 creates

2 participants