Changeset - r20977:98fc2236328a
[Not reviewed]
master
0 1 0
rubidium - 11 years ago 2013-11-22 21:44:23
rubidium@openttd.org
(svn r26051) -Fix: out of bounds access in CmdTownCargoGoal
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/town_cmd.cpp
Show inline comments
 
@@ -2465,7 +2465,7 @@ CommandCost CmdTownCargoGoal(TileIndex t
 
	if (_current_company != OWNER_DEITY) return CMD_ERROR;
 

	
 
	TownEffect te = (TownEffect)GB(p1, 16, 8);
 
	if (te < TE_BEGIN || te > TE_END) return CMD_ERROR;
 
	if (te < TE_BEGIN || te >= TE_END) return CMD_ERROR;
 

	
 
	uint16 index = GB(p1, 0, 16);
 
	Town *t = Town::GetIfValid(index);
0 comments (0 inline, 0 general)