From 10073edb0fbd8b3601e5b2af15ed02fb72e159f9 Mon Sep 17 00:00:00 2001 From: Maleclypse <54345792+Maleclypse@users.noreply.github.com> Date: Tue, 16 Jul 2024 23:06:45 -0500 Subject: [PATCH] Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- src/debug_menu.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/debug_menu.cpp b/src/debug_menu.cpp index 438b3d653b654..0bca378dc3d8e 100644 --- a/src/debug_menu.cpp +++ b/src/debug_menu.cpp @@ -3498,17 +3498,17 @@ static void spawn_npc() static void spawn_named_npc() { - avatar& player_character = get_avatar(); + avatar &player_character = get_avatar(); shared_ptr_fast temp = make_shared_fast(); temp->normalize(); const npc_class_id npc_class = npc_class_id::from_string( string_input_popup() - .title( _( "Enter NPC class" ) ) - .width( 20 ) - .query_string() ); + .title( _( "Enter NPC class" ) ) + .width( 20 ) + .query_string() ); temp->set_npc_class( npc_class ); - temp->spawn_at_precise(player_character.get_location() + point(-4, -4)); - overmap_buffer.insert_npc(temp); - temp->form_opinion(player_character); + temp->spawn_at_precise( player_character.get_location() + point( -4, -4 ) ); + overmap_buffer.insert_npc( temp ); + temp->form_opinion( player_character ); g->load_npcs(); }