From 29fe980021165cc52bd183443832fea50d564195 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 7 Feb 2011 13:40:28 +0000 Subject: [PATCH] Fix a coding error in the null tiler detection. --- src/tiler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tiler.cpp b/src/tiler.cpp index f86ab0a3..9a81af86 100644 --- a/src/tiler.cpp +++ b/src/tiler.cpp @@ -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); #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; return; }