diff options
author | tron <tron@openttd.org> | 2005-07-20 19:12:30 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-07-20 19:12:30 +0000 |
commit | 765e80114b9d5510bc6297c19d18f95db5686935 (patch) | |
tree | 901b54b90b715427892a92ca056a53191d1d3f67 /console.c | |
parent | e36d25210e2baa657bd216949de69c149de8d76a (diff) | |
download | openttd-765e80114b9d5510bc6297c19d18f95db5686935.tar.xz |
(svn r2655) An uint16 is an uint16, not a byte - fix wrong cast
Diffstat (limited to 'console.c')
-rw-r--r-- | console.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |