Skip to content

fix: restore CASW_Inhabitable_NPC client class registration - #1087

Merged
Kitsune44 merged 1 commit into
ReactiveDrop:reactivedrop_betafrom
Kitsune44:reactivedrop_beta
Aug 12, 2026
Merged

fix: restore CASW_Inhabitable_NPC client class registration#1087
Kitsune44 merged 1 commit into
ReactiveDrop:reactivedrop_betafrom
Kitsune44:reactivedrop_beta

Conversation

@Kitsune44

Copy link
Copy Markdown
Contributor

The #define CASW_Inhabitable_NPC C_ASW_Inhabitable_NPC from rd_inventory_shared.h was leaking into c_asw_inhabitable_npc.cpp via c_asw_player.h, causing the IMPLEMENT_CLIENTCLASS_DT invocation to expand incorrectly (third argument stringified as "C_ASW_Inhabitable_NPC" instead of "CASW_Inhabitable_NPC").

This caused the "Client missing DT class CASW_Inhabitable_NPC" error and a crash when parsing entity updates on maps with such entities (e.g. rd-par2hostile_places).

This matches the existing pattern in c_asw_player.cpp and c_asw_marine_resource.cpp.

The #define CASW_Inhabitable_NPC C_ASW_Inhabitable_NPC from rd_inventory_shared.h
was leaking into c_asw_inhabitable_npc.cpp via c_asw_player.h, causing the
IMPLEMENT_CLIENTCLASS_DT invocation to expand incorrectly (third argument
stringified as "C_ASW_Inhabitable_NPC" instead of "CASW_Inhabitable_NPC").

This caused the "Client missing DT class CASW_Inhabitable_NPC" error and a crash
when parsing entity updates on maps with such entities (e.g.
rd-par2hostile_places).

This matches the existing pattern in c_asw_player.cpp and
c_asw_marine_resource.cpp.
@Kitsune44
Kitsune44 merged commit 417fd5c into ReactiveDrop:reactivedrop_beta Aug 12, 2026
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.

1 participant