summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-20 19:12:30 +0000
committertron <tron@openttd.org>2005-07-20 19:12:30 +0000
commit389f61218d8c0b16b016ae9b3919fc0d731e9836 (patch)
tree901b54b90b715427892a92ca056a53191d1d3f67
parent4130198f48f8c342373c4aa17b0c2cba31835415 (diff)
downloadopenttd-389f61218d8c0b16b016ae9b3919fc0d731e9836.tar.xz
(svn r2655) An uint16 is an uint16, not a byte - fix wrong cast
-rw-r--r--console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/console.c b/console.c
index e2b7c122b..959d54bb9 100644
--- a/console.c
+++ b/console.c
@@ -827,7 +827,7 @@ static void IConsoleVarSetValue(const IConsoleVar *var, uint32 value)
*(byte*)var->addr = (byte)value;
break;
case ICONSOLE_VAR_UINT16:
- *(uint16*)var->addr = (byte)value;
+ *(uint16*)var->addr = (uint16)value;
break;
case ICONSOLE_VAR_INT16:
*(int16*)var->addr = (int16)value;