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

Add error checking and reporting to cata_tiles.cpp #22598

Merged
merged 2 commits into from
Dec 21, 2017

Conversation

BevapDin
Copy link
Contributor

Basically add error reporting either via throwing (for functions invoked when loading the tileset) or via logging to the debug log.

Releases the caller from explicitly checking the returned pointer.

Inserts `assert` statements in the callers just because.

Change some `SDL_Surface_Ptr` instances to be const as they don't get changed at all.
@ZhilkinSerg
Copy link
Contributor

Will it help to pinpoint which causes #22596?

@codemime codemime self-assigned this Dec 20, 2017
@codemime codemime merged commit eec31e5 into CleverRaven:master Dec 21, 2017
@BevapDin BevapDin deleted the dri branch January 8, 2018 10:28
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.

3 participants