aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/he
diff options
context:
space:
mode:
Diffstat (limited to 'engines/scumm/he')
-rw-r--r--engines/scumm/he/moonbase/net_main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/scumm/he/moonbase/net_main.cpp b/engines/scumm/he/moonbase/net_main.cpp
index 10a6544e9a..d6443adcc4 100644
--- a/engines/scumm/he/moonbase/net_main.cpp
+++ b/engines/scumm/he/moonbase/net_main.cpp
@@ -550,9 +550,10 @@ bool Net::remoteReceiveData() {
}
void Net::remoteReceiveDataCallback(Common::JSONValue *response) {
- debug(1, "remoteReceiveData: Got: '%s'", response->stringify().c_str());
-
_packetdata = new Common::JSONValue(*response);
+
+ if (_packetdata->child("size")->asIntegerNumber() != 0)
+ debug(1, "remoteReceiveData: Got: '%s'", response->stringify().c_str());
}
void Net::remoteReceiveDataErrorCallback(Networking::ErrorResponse error) {