Skip to content

Commit 25ffe62

Browse files
committed
Revert "CRemoteCalls: make callRemote return 0 as errno upon success (#295)"
This reverts commit a914a58.
1 parent e5ede83 commit 25ffe62

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Server/mods/deathmatch/logic/CRemoteCalls.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,12 @@ void CRemoteCall::DownloadFinishedCallback(const SHttpDownloadResult& result)
243243
if (result.bSuccess)
244244
{
245245
if (pCall->IsFetch())
246+
{
246247
arguments.PushString(std::string(result.pData, result.dataSize));
248+
arguments.PushNumber(0);
249+
}
247250
else
248251
arguments.ReadFromJSONString(result.pData);
249-
arguments.PushNumber(0);
250252
}
251253
else
252254
{

0 commit comments

Comments
 (0)