From bbd14acb1d6243ef50c0b884a92767d1b82c6e95 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 23 May 2009 12:56:30 +0000 Subject: [PATCH] (svn r16398) -Feature: make NewGRF callbacks work again; honouring the 'features' of 0.3.2.1, which was released only 5 years ago. --- src/newgrf_spritegroup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf_spritegroup.h b/src/newgrf_spritegroup.h index 3598d14093..13cfb19c61 100644 --- a/src/newgrf_spritegroup.h +++ b/src/newgrf_spritegroup.h @@ -192,7 +192,7 @@ struct CallbackResultSpriteGroup : SpriteGroup { */ CallbackResultSpriteGroup(uint16 value) : SpriteGroup(SGT_CALLBACK), - result(result) + result(value) { /* Old style callback results have the highest byte 0xFF so signify it is a callback result * New style ones only have the highest bit set (allows 15-bit results, instead of just 8) */