Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "calling 'GetName' on bad self" #264

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

romracer
Copy link

@romracer romracer commented Jun 5, 2024

In 4.1+ clients, which all modern and classic WoW clients are long descedents from (all clients are 10.0+ now), GetMouseFocus() can return nil when opening character frames (player or others like inspecting). This fixes calling GetName in those situations. Its probably a little overkill, but it works.

In 4.1+ clients, which all modern and classic WoW clients are long
descedents from (all clients are 10.0+ now), GetMouseFocus() can
return nil when opening character frames (player or others like
inspecting).  This fixes calling GetName in those situations.  Its
probably a little overkill, but it works.
@Rottenbeer
Copy link
Owner

Sorry for the delay. Is this still relevant?

@Rottenbeer
Copy link
Owner

Rottenbeer commented Sep 26, 2024

@romracer I guess it's not longer needed after #270 checks for nil?

@romracer
Copy link
Author

This is still relevant even with #270.

@Rottenbeer Rottenbeer merged commit dd58d13 into Rottenbeer:master Sep 27, 2024
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