Browse Source

Fix a coding error in the null tiler detection.

legacy
Sam Hocevar sam 14 years ago
parent
commit
29fe980021
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/tiler.cpp

+ 3
- 2
src/tiler.cpp View File

@@ -73,9 +73,10 @@ void Tiler::BlitTile(uint32_t code, int x, int y, int z, int o)


TileSet *tileset = (TileSet *)data->tilesets.GetEntity(id); TileSet *tileset = (TileSet *)data->tilesets.GetEntity(id);
#if !FINAL_RELEASE #if !FINAL_RELEASE
if (!tileset && id != data->lasterror)
if (!tileset)
{ {
fprintf(stderr, "ERROR: blitting to null tiler #%i\n", id);
if (id != data->lasterror)
fprintf(stderr, "ERROR: blitting to null tiler #%i\n", id);
data->lasterror = id; data->lasterror = id;
return; return;
} }


Loading…
Cancel
Save