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

Game crash #28

Open
Haceau-Zoac opened this issue Nov 8, 2020 · 1 comment
Open

Game crash #28

Haceau-Zoac opened this issue Nov 8, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@Haceau-Zoac
Copy link

Press ESC or close the game in multpayers / LAN / join a game to crash(dungeon_rush.exe 已停止工作)
My system is window7

@Haceau-Zoac
Copy link
Author

Haceau-Zoac commented Nov 15, 2020

I found the problem because the destroyText function passed a null pointer
Repair method:
Add a null pointer detection to the function destroyText

void destroyText(Text* self) {
   if (self != NULL)
   {
     SDL_DestroyTexture(self->origin);
     free(self);
   }
}

Haceau-Zoac added a commit to Haceau-Zoac/DungeonRush that referenced this issue Nov 15, 2020
@rapiz1 rapiz1 added the bug Something isn't working label Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants