Skip to content

Commit

Permalink
BUGFIX Disabled spell learning in 'R'ead
Browse files Browse the repository at this point in the history
It invokes undefined behavior, potentially causing crashes.
  • Loading branch information
Coolthulhu committed Aug 27, 2020
1 parent 28390a6 commit 61bbfc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game_inventory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ class read_inventory_preset: public pickup_inventory_preset
}

bool is_shown( const item_location &loc ) const override {
return loc->is_book() || loc->type->can_use( "learn_spell" );
return loc->is_book();
}

std::string get_denial( const item_location &loc ) const override {
Expand Down

0 comments on commit 61bbfc8

Please sign in to comment.