Skip to content

Commit

Permalink
Eat crash hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
KorGgenT authored and kevingranade committed May 8, 2020
1 parent 730d5fa commit 97e3499
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/activity_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,11 @@ void consume_activity_actor::start( player_activity &act, Character & )

void consume_activity_actor::finish( player_activity &act, Character & )
{
if( !loc ) {
debugmsg( "Consume actor lost item_location target" );
act.set_to_null();
return;
}
if( loc.where() == item_location::type::character ) {
g->u.consume( loc );

Expand Down

0 comments on commit 97e3499

Please sign in to comment.