Skip to content

Commit

Permalink
char update
Browse files Browse the repository at this point in the history
  • Loading branch information
GalacticApple committed May 26, 2024
1 parent 58ac75f commit 9eb05b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down
2 changes: 1 addition & 1 deletion src/game.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9eb05b3

Please sign in to comment.