Skip to content

Commit

Permalink
fix(_addSharePlayer): 临时解决 Dropdown 崩溃问题
Browse files Browse the repository at this point in the history
Dropdown 不过滤自己,避免空 vector 引发异常
  • Loading branch information
engsr6982 authored Oct 8, 2024
1 parent 8cb577d commit b4058c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plotcraft/gui/PlotShareGUI.cc
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void _addSharePlayer(Player& player, PlotMetadataPtr pt) {

std::vector<string> names;
ll::service::getLevel()->forEachPlayer([&names, &player](Player& p) {
if (p == player) return true; // 排除自己
// if (p == player) return true; // 排除自己
names.push_back(p.getRealName());
return true;
});
Expand Down

0 comments on commit b4058c7

Please sign in to comment.