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) {