summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2005-01-10 10:38:02 +0000
committerdarkvater <darkvater@openttd.org>2005-01-10 10:38:02 +0000
commit53bd40ebaf74671a0a44bb5d1c37eb892510fc3e (patch)
tree0a312c1e91e2761195ece478712dbafea00ab50d
parentcd4e73193dcd3989c0379d769923323bfec0748b (diff)
downloadopenttd-53bd40ebaf74671a0a44bb5d1c37eb892510fc3e.tar.xz
(svn r1458) -Fix: remove byte *s again for windows.
-rw-r--r--spritecache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/spritecache.c b/spritecache.c
index 3b8722308..2b2d8c83a 100644
--- a/spritecache.c
+++ b/spritecache.c
@@ -774,7 +774,6 @@ static bool FileMD5(const MD5File file, bool warn)
{
FILE *f;
char buf[MAX_PATH];
- byte *s;
md5_state_t filemd5state;
int len=0;
@@ -786,8 +785,9 @@ static bool FileMD5(const MD5File file, bool warn)
#if !defined(WIN32)
if (f == NULL) {
+ byte *s;
// make lower case and check again
- for (s=buf + strlen(_path.data_dir) - 1; *s != 0; s++)
+ for (s = buf + strlen(_path.data_dir) - 1; *s != 0; s++)
*s = tolower(*s);
f = fopen(buf, "rb");
}