Code tweak

This commit is contained in:
Kayne Ruse
2013-09-25 21:27:00 +10:00
parent d5b14c2679
commit aae244de39
+2
View File
@@ -52,6 +52,8 @@ SDL_Surface* TileSheet::GetSurface() {
void TileSheet::FreeSurface() { void TileSheet::FreeSurface() {
image.FreeSurface(); image.FreeSurface();
totalCount = xCount = yCount = 0; totalCount = xCount = yCount = 0;
begin = end = -1;
name.clear();
} }
void TileSheet::DrawTo(SDL_Surface* const dest, int x, int y, int tileIndex) { void TileSheet::DrawTo(SDL_Surface* const dest, int x, int y, int tileIndex) {