Skip to content

fix: don't initialize globals with Address_Null - #4

Open
Rushaway wants to merge 1 commit into
masterfrom
fix/address-null-sm113
Open

Rushaway wants to merge 1 commit into
masterfrom
fix/address-null-sm113

Conversation

@Rushaway

Copy link
Copy Markdown
Member

Summary

  • Drop the = Address_Null initializers on the two global Address variables (globals are zero-initialized anyway).
  • Bump version: 1.0.2 -> 1.0.3

Why

SourceMod 1.13 declares Address_Null as a public const instead of a compile-time constant, so Address addy = Address_Null; at global scope fails with error 008: must be a constant expression on spcomp 1.13. It still compiled on 1.12.

Test plan

  • Compiles on spcomp 1.13.0.7427 and 1.11.0.62 (this repo has no CI)

🤖 Generated with Claude Code

SourceMod 1.13 declares Address_Null as a public const, which is not a compile-time constant, so the global initializers fail to compile on spcomp 1.13. Globals are zero-initialized anyway. Bump version to 1.0.3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant