getPrivateState does not return null?

Game development with Board Game Arena Studio
Post Reply
User avatar
JudgeWhyMe
Posts: 36
Joined: 08 August 2012, 17:14

getPrivateState does not return null?

Post by JudgeWhyMe »

Hello

The documentation indicates
$this->gamestate->getPrivateState($playerId)
This return the private state or null if not initialized or not in private state
However, when I tried to call the getPrivateState method on a player who is not in a private state (in the getAllDatas method), I have the following error:
Warning: Undefined array key 2413802 in /var/tournoi/release/tournoi-250505-1448-gs/www/Bga/GameFramework/GamestateMachine.php on line 1305
2413802 is the $playerId

Is it normal?

Thanks
User avatar
thoun
Posts: 1620
Joined: 10 December 2020, 22:25

Re: getPrivateState does not return null?

Post by thoun »

It is not. It will be fixed in the next release.
Post Reply

Return to “Developers”