From aae244de39018e4cbd53c6af062cea89dfc94e84 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Wed, 25 Sep 2013 21:27:00 +1000 Subject: [PATCH] Code tweak --- editor/tile_sheet.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/tile_sheet.cpp b/editor/tile_sheet.cpp index f1509d1..a36e945 100644 --- a/editor/tile_sheet.cpp +++ b/editor/tile_sheet.cpp @@ -52,6 +52,8 @@ SDL_Surface* TileSheet::GetSurface() { void TileSheet::FreeSurface() { image.FreeSurface(); totalCount = xCount = yCount = 0; + begin = end = -1; + name.clear(); } void TileSheet::DrawTo(SDL_Surface* const dest, int x, int y, int tileIndex) {