fix off by one error (#3296)

This commit is contained in:
Quentin 2024-07-02 10:16:06 +02:00 committed by GitHub
parent fca25336cc
commit 50da01eb22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -153,7 +153,7 @@ namespace big
if (ImGui::BeginCombo("BLOCK_JOIN_ALERT"_T.data(), block_join_reasons[current_player->block_join_reason]))
{
block_join_reason_t i = block_join_reason_t::None;
block_join_reason_t i = block_join_reason_t::UNK_0;
for (const auto& reason_str : block_join_reasons)
{
if (reason_str != "")

View File

@ -28,7 +28,7 @@ namespace big
if (reaction.block_joins)
if (ImGui::BeginCombo("BLOCK_JOIN_ALERT"_T.data(), block_join_reasons[reaction.block_join_reason]))
{
block_join_reason_t i = block_join_reason_t::None;
block_join_reason_t i = block_join_reason_t::UNK_0;
for (const auto& reason_str : block_join_reasons)
{
if (reason_str != "")
@ -73,7 +73,7 @@ namespace big
if (reaction.block_joins)
if (ImGui::BeginCombo("BLOCK_JOIN_ALERT"_T.data(), block_join_reasons[reaction.block_join_reason]))
{
block_join_reason_t i = block_join_reason_t::None;
block_join_reason_t i = block_join_reason_t::UNK_0;
for (const auto& reason_str : block_join_reasons)
{
if (reason_str != "")