Skip to content

Commit

Permalink
The bug was caused by newline in empty PC name. fix #479
Browse files Browse the repository at this point in the history
  • Loading branch information
NQNStudios committed Jan 16, 2025
1 parent 34785c3 commit 62ddf3d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/universe/pc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,10 @@ cPlayer::cPlayer(cParty& party) : cPlayer(no_party) {

cPlayer::cPlayer(no_party_t) : weap_poisoned(*this) {
main_status = eMainStatus::ABSENT;
name = "\n";
// This newline caused a bug that took ~16 hours to figure out...
// So I'm leaving it in here, think of it as the bug's head on a spike.
// name = "\n";
name = "";

skills[eSkill::STRENGTH] = 1;
skills[eSkill::DEXTERITY] = 1;
Expand Down

0 comments on commit 62ddf3d

Please sign in to comment.