Changeset - r21056:6b36f664119c
[Not reviewed]
master
0 1 0
rubidium - 11 years ago 2013-11-29 18:06:14
rubidium@openttd.org
(svn r26138) -Fix [FS#5821] (r26105-ish): [Script] scripts could trigger the internal IsValidRoadType assertion
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/script/api/script_road.cpp
Show inline comments
 
@@ -53,7 +53,7 @@
 

	
 
/* static */ bool ScriptRoad::IsRoadTypeAvailable(RoadType road_type)
 
{
 
	return ::HasRoadTypesAvail(ScriptObject::GetCompany(), ::RoadTypeToRoadTypes((::RoadType)road_type));
 
	return ::IsValidRoadType((::RoadType)road_type) && ::HasRoadTypesAvail(ScriptObject::GetCompany(), ::RoadTypeToRoadTypes((::RoadType)road_type));
 
}
 

	
 
/* static */ ScriptRoad::RoadType ScriptRoad::GetCurrentRoadType()
0 comments (0 inline, 0 general)