diff options
author | Eugene Sandulenko | 2019-11-06 00:54:23 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2019-11-06 00:54:23 +0100 |
commit | 7b92e4372c5e2bde76bc4a365628db25035ae6eb (patch) | |
tree | bddad69a911bf1cbb7ff2cd84b57e181bd2dc18b | |
parent | 79c8364c85ba0088f756a52b2025690e39c92f9c (diff) | |
download | scummvm-rg350-7b92e4372c5e2bde76bc4a365628db25035ae6eb.tar.gz scummvm-rg350-7b92e4372c5e2bde76bc4a365628db25035ae6eb.tar.bz2 scummvm-rg350-7b92e4372c5e2bde76bc4a365628db25035ae6eb.zip |
SCUMM HE: MBC: Pass userid for the endsession request
-rw-r--r-- | engines/scumm/he/moonbase/net_main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/he/moonbase/net_main.cpp b/engines/scumm/he/moonbase/net_main.cpp index 0412b0bd95..5a8323e63c 100644 --- a/engines/scumm/he/moonbase/net_main.cpp +++ b/engines/scumm/he/moonbase/net_main.cpp @@ -203,7 +203,7 @@ int Net::endSession() { new Common::Callback<Net, Networking::ErrorResponse>(this, &Net::endSessionErrorCallback)); char *buf = (char *)malloc(MAX_PACKET_SIZE); - snprintf(buf, MAX_PACKET_SIZE, "{\"sessionid\":%d}", _sessionid); + snprintf(buf, MAX_PACKET_SIZE, "{\"sessionid\":%d, \"userid\":%d}", _sessionid, _myUserId); rq.setPostData((byte *)buf, strlen(buf)); rq.setContentType("application/json"); |