Skip to content

Conversation

@Udolfoo
Copy link

@Udolfoo Udolfoo commented Sep 17, 2025

🍰 Pullrequest

Corporal Keeshan seems to be stuck sometimes in world when he died.

Proof

image

How2Test

  • Kill him
  • He should now respawn correctly

m_creature->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER);

// SetSpawn
if (m_homeX || m_homeY || m_homeZ)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

m_homeX etc are never set - this if statement is unpredictable.

In debug the variables will be initialized to 0. But on release build the values will be uninitialized.

the m_ prefix should be used for member variables only.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, thanks!

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