Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle nullptr in spawn-monsters-submap #70880

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update map.cpp
  • Loading branch information
physics-enthusiast authored Jan 13, 2024
commit 521a74f2ff6ce9509ead17c06de2001b736def45
2 changes: 1 addition & 1 deletion src/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8811,7 +8811,7 @@ void map::spawn_monsters_submap( const tripoint &gp, bool ignore_sight, bool spa

if( i.mission_id > 0 ) {
mission *found_mission = mission::find( i.mission_id );
if( found_mission != nullptr) {
if( found_mission != nullptr ) {
tmp.mission_ids = { i.mission_id };
if( found_mission->get_type().goal == MGOAL_KILL_MONSTERS ) {
found_mission->register_kill_needed();
Expand Down
Loading