sekassel / stp-24-server-tracker

Issue Tracker and Feature Requests for the STP 2024 Server.
0 stars 0 forks source link

Patching a GameMember resets HomeSystemType to null #26

Closed ole-rumpf closed 1 month ago

ole-rumpf commented 1 month ago

Describe the bug If you patch a GameMember with an EmpireTemplate which has an HomeSystemType selected the HomeSystemType of the response is null

EmpireTemplate of the member when updateGameMember is called : image

EmpireTemplate of the response: image

To Reproduce Steps to reproduce the behavior:

  1. Create a new Game
  2. Patch one GameMember with an EmpireTemplate that has a HomeSystemType selected with the coresponding server interface
  3. Look at the HomeSystemType of the response
  4. See error that HomeSystemType is null

Expected behavior Patching a GameMember does not change the HomeSystemType of the GameMembers EmpireTemplate

Clashsoft commented 1 month ago

The property in EmpireTemplate is named homeSystem and not homeSystemType.

ole-rumpf commented 1 month ago

Oh, this explains it. Thank you, I did not recognize this. Now it works correctly.