Skip to content

Commit

Permalink
Fix duplicated HSI record when loadsave (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
eric15342335 committed Jun 16, 2024
1 parent bac788f commit 7e261ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,10 @@ int main(void) {

initializePlayerSaves(stocks_list, hsi_history);

get_hsi(stocks_list, hsi_history);
if (hsi_history.empty()) {
get_hsi(stocks_list, hsi_history);
}

// Done loading/creating a new file.
std::cout << "Current trading fees are charged at " << trading_fees_percent * 100
<< " %" << std::endl;
Expand Down

0 comments on commit 7e261ac

Please sign in to comment.