Skip to content

Commit

Permalink
FIX: (z9999) a reserved crossing was not alsways correctly released
Browse files Browse the repository at this point in the history
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@3631 8aca7d54-2c30-db11-9de9-000461428c89
  • Loading branch information
prissi committed Aug 8, 2010
1 parent 15d4551 commit efb9572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataobj/crossing_logic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ crossing_logic_t::release_crossing( const vehikel_basis_t *v )
{
if(v->get_waytype()==besch->get_waytype(0)) {
on_way1.remove(v);
if(zustand == CROSSING_REQUEST_CLOSE && on_way1.get_count()==1) {
if(zustand == CROSSING_REQUEST_CLOSE && on_way1.empty()) {
set_state( CROSSING_CLOSED );
}
}
Expand Down

0 comments on commit efb9572

Please sign in to comment.