Skip to content

Commit 98ff905

Browse files
committed
Fix crash.
1 parent 6d374c4 commit 98ff905

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/SquadMgr/KillproofInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ struct KPMEInfo_t
1818
{
1919
bool IsInvalid; // No account.
2020

21-
std::string ProofURL;
21+
std::string ProofURL{};
2222

2323
struct RaidKP_t
2424
{

src/SquadMgr/SquadMgr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ void CSquadMgr::Render()
489489
RenderIcon(sz, &G::Textures[ETextures::TagLieutenant], "TEX_TAG_LIEUTENANT", "Lieutenant", IDB_TAG_LIEUTENANT);
490490
ImGui::SameLine();
491491
}
492-
if (player.KPMEInfo->ProofURL.empty())
492+
if (player.KPMEInfo == nullptr || player.KPMEInfo->ProofURL.empty())
493493
{
494494
ImGui::Text(player.Member.AccountName);
495495
}

0 commit comments

Comments
 (0)