From b6132fec03360a53dd8f6dd683d4247958276492 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 2 Nov 2019 23:49:21 +0100 Subject: SCUMM HE: MBC: Fix passing arrays to the server --- engines/scumm/he/moonbase/net_main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/scumm/he/moonbase/net_main.cpp b/engines/scumm/he/moonbase/net_main.cpp index 22ccdff854..d29154be9f 100644 --- a/engines/scumm/he/moonbase/net_main.cpp +++ b/engines/scumm/he/moonbase/net_main.cpp @@ -415,13 +415,12 @@ void Net::remoteSendArray(int typeOfSend, int sendTypeParam, int priority, int a error("Net::remoteSendArray(): Unknown array type %d for array %d", FROM_LE_32(ah->type), arrayIndex); } - jsonData += Common::String::format("%d, ", data); + jsonData += Common::String::format("%d", data); if (i < size - 1) jsonData += ", "; else jsonData += "]"; - jsonData += Common::String::format("%d]", ah->data[size - 1]); } remoteSendData(typeOfSend, sendTypeParam, PACKETTYPE_REMOTESENDSCUMMARRAY, jsonData, 0); -- cgit v1.2.3