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

GetSelectedSpell crash the game when called in combat #1

Closed
llde opened this issue Jul 13, 2016 · 2 comments
Closed

GetSelectedSpell crash the game when called in combat #1

llde opened this issue Jul 13, 2016 · 2 comments

Comments

@llde
Copy link
Owner

llde commented Jul 13, 2016

No description provided.

@llde
Copy link
Owner Author

llde commented Jul 13, 2016

QQUIX: The crash occurs: (1) if the NPC has no spells, (2) has a few spells or (3) has a leveled spell list.

But maybe there are other CTD instance

@llde
Copy link
Owner Author

llde commented Jul 26, 2016

Memory for the Future: sizeof(array) doesn't get the number of element in the array.
use sizeof(array)/sizeof(element_type);

QQUix assumptions were actually wrong. The crash was caused by trying to access an invalid segment of memory, possibly superating a page boundary, becouse there were excessive iterations

@llde llde closed this as completed Jul 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant