diff options
author | rubidium <rubidium@openttd.org> | 2014-04-24 18:49:24 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-04-24 18:49:24 +0000 |
commit | 2e493fa806bb54bf48a5f47729a9c5a01afdd100 (patch) | |
tree | debe190a862bcacf2ddb98f7f546da69f77d0651 /src | |
parent | 781dd4894938ad02f83b5697723c4bb3f113b43d (diff) | |
download | openttd-2e493fa806bb54bf48a5f47729a9c5a01afdd100.tar.xz |
(svn r26503) -Fix: compilation error with full debug build
Diffstat (limited to 'src')
-rw-r--r-- | src/map.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp index bd035bed3..252f20b60 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -13,6 +13,7 @@ #include "debug.h" #include "core/alloc_func.hpp" #include "water_map.h" +#include "string_func.h" #include "safeguards.h" @@ -84,7 +85,7 @@ TileIndex TileAdd(TileIndex tile, TileIndexDiff add, if (x >= MapSizeX() || y >= MapSizeY()) { char buf[512]; - snprintf(buf, lengthof(buf), "TILE_ADD(%s) when adding 0x%.4X and 0x%.4X failed", + seprintf(buf, lastof(buf), "TILE_ADD(%s) when adding 0x%.4X and 0x%.4X failed", exp, tile, add); #if !defined(_MSC_VER) || defined(WINCE) fprintf(stderr, "%s:%d %s\n", file, line, buf); |