aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-11-06 00:54:23 +0100
committerEugene Sandulenko2019-11-06 00:54:23 +0100
commit7b92e4372c5e2bde76bc4a365628db25035ae6eb (patch)
treebddad69a911bf1cbb7ff2cd84b57e181bd2dc18b
parent79c8364c85ba0088f756a52b2025690e39c92f9c (diff)
downloadscummvm-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.cpp2
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");