From 9eb05b3a1f26f18bb36912921ae92081431552e4 Mon Sep 17 00:00:00 2001 From: GalacticApple <01134dave@gmail.com> Date: Sun, 26 May 2024 19:59:24 -0400 Subject: [PATCH] char update --- src/game.cpp | 4 ++-- src/game.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game.cpp b/src/game.cpp index c21e29d2b7a5c..18126b893c86e 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -3627,9 +3627,9 @@ void game::disp_NPC_epilogues() } } -bool game::verify_dynamic_power( std::string dyn ) +bool game::verify_dynamic_power( std::string &dyn ) { - for( char i = 0; i < dyn.length(); i++ ) { + for( int i = 0; i < dyn.length(); i++ ) { if( i == 0 ) { if( dyn[i] == '1' ) { if( faction_manager_ptr->get( faction_id( "old_guard" ) )->power < 150 ) { diff --git a/src/game.h b/src/game.h index 8764ac1eb820d..eda981623cefa 100644 --- a/src/game.h +++ b/src/game.h @@ -1051,7 +1051,7 @@ class game void list_missions(); // Listed current, completed and failed missions (mission_ui.cpp) bool verify_dynamic_power( std::string - dyn ); //Checks to make sure the faction power requirements are met for dynamic endings + &dyn ); //Checks to make sure the faction power requirements are met for dynamic endings private: // Input related // Handles box showing items under mouse