summaryrefslogtreecommitdiff
path: root/src/newgrf_spritegroup.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-03-21 11:05:39 +0000
committerfrosch <frosch@openttd.org>2010-03-21 11:05:39 +0000
commitc049bf3f388438c9901981b1943b35fc3add3e4d (patch)
tree2bd583c61b01cecbd8ad64c38b68bd16767904a2 /src/newgrf_spritegroup.h
parentb7b01bb9c703acdf93c36e7212e959b399442d93 (diff)
downloadopenttd-c049bf3f388438c9901981b1943b35fc3add3e4d.tar.xz
(svn r19497) -Fix: [NewGRF] Bytes and words get sign-extended for temporary/persistent storage. (Spotted by yexo)
Diffstat (limited to 'src/newgrf_spritegroup.h')
-rw-r--r--src/newgrf_spritegroup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_spritegroup.h b/src/newgrf_spritegroup.h
index 1bcc7de7e..c606e147d 100644
--- a/src/newgrf_spritegroup.h
+++ b/src/newgrf_spritegroup.h
@@ -31,7 +31,7 @@
*/
static inline uint32 GetRegister(uint i)
{
- extern TemporaryStorageArray<uint32, 0x110> _temp_store;
+ extern TemporaryStorageArray<int32, 0x110> _temp_store;
return _temp_store.Get(i);
}