Commit b1f43160 authored by gerstrong@gmail.com's avatar gerstrong@gmail.com

Replaced assert

parent d9a60455
......@@ -132,8 +132,10 @@ public:
*/
void unload()
{
assert(mpTexture != nullptr);
SDL_DestroyTexture( mpTexture );
if(mpTexture != nullptr)
SDL_DestroyTexture( mpTexture );
mpTexture = nullptr;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment