mirror of https://github.com/OpenRCT2/OpenRCT2.git
fixed functiion to use passed parameter
This commit is contained in:
parent
66660f7d6f
commit
37d5cc9ecc
|
@ -45,14 +45,14 @@ uint16_t TrackRemoveAction::GetActionFlags() const
|
|||
|
||||
int32_t TrackRemoveAction::NormaliseTrackType(int32_t trackType) const
|
||||
{
|
||||
switch (_trackType)
|
||||
switch (trackType)
|
||||
{
|
||||
case TrackElemType::BeginStation:
|
||||
case TrackElemType::MiddleStation:
|
||||
return TrackElemType::EndStation;
|
||||
}
|
||||
|
||||
return _trackType;
|
||||
return trackType;
|
||||
}
|
||||
|
||||
void TrackRemoveAction::Serialise(DataSerialiser& stream)
|
||||
|
|
Loading…
Reference in New Issue