Skip to content

Commit

Permalink
Fix vehicle dismantling crash (#19064)
Browse files Browse the repository at this point in the history
* Fix vehicle dismantling crash

* Make the conditional more clear
  • Loading branch information
sethsimon authored and mugling committed Nov 1, 2016
1 parent c8896f2 commit 9dd4ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/activity_handlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@ void activity_handlers::vehicle_finish( player_activity *act, player *pl )
// complete_vehicle set activity type to NULL if the vehicle
// was completely dismantled, otherwise the vehicle still exist and
// is to be examined again.
if( !act ) {
if( act->is_null() ) {
return;
}
act->set_to_null();
Expand Down

0 comments on commit 9dd4ec9

Please sign in to comment.