mirror of https://github.com/OpenTTD/OpenTTD
(svn r2655) An uint16 is an uint16, not a byte - fix wrong cast
parent
4130198f48
commit
389f61218d
|
@ -827,7 +827,7 @@ static void IConsoleVarSetValue(const IConsoleVar *var, uint32 value)
|
||||||
*(byte*)var->addr = (byte)value;
|
*(byte*)var->addr = (byte)value;
|
||||||
break;
|
break;
|
||||||
case ICONSOLE_VAR_UINT16:
|
case ICONSOLE_VAR_UINT16:
|
||||||
*(uint16*)var->addr = (byte)value;
|
*(uint16*)var->addr = (uint16)value;
|
||||||
break;
|
break;
|
||||||
case ICONSOLE_VAR_INT16:
|
case ICONSOLE_VAR_INT16:
|
||||||
*(int16*)var->addr = (int16)value;
|
*(int16*)var->addr = (int16)value;
|
||||||
|
|
Loading…
Reference in New Issue