mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 08:22:15 -07:00
Correctly nullptr out sayMenu if not local
Took 3 minutes
This commit is contained in:
parent
fc885d44dd
commit
2ee286ae05
1 changed files with 2 additions and 0 deletions
|
|
@ -69,6 +69,8 @@ PlayerMenu::PlayerMenu(Player *_player) : player(_player)
|
||||||
if (player->getPlayerInfo()->getLocal()) {
|
if (player->getPlayerInfo()->getLocal()) {
|
||||||
sayMenu = new SayMenu(player);
|
sayMenu = new SayMenu(player);
|
||||||
playerMenu->addMenu(sayMenu);
|
playerMenu->addMenu(sayMenu);
|
||||||
|
} else {
|
||||||
|
sayMenu = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (player->getPlayerInfo()->getLocalOrJudge()) {
|
if (player->getPlayerInfo()->getLocalOrJudge()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue