Skip to content

Commit a914a58

Browse files
patrikjuvonenqaisjp
authored andcommitted
CRemoteCalls: make callRemote return 0 as errno upon success (#295)
1 parent b9d509a commit a914a58

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Server/mods/deathmatch/logic/CRemoteCalls.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,10 @@ void CRemoteCall::DownloadFinishedCallback(const SHttpDownloadResult& result)
243243
if (result.bSuccess)
244244
{
245245
if (pCall->IsFetch())
246-
{
247246
arguments.PushString(std::string(result.pData, result.dataSize));
248-
arguments.PushNumber(0);
249-
}
250247
else
251248
arguments.ReadFromJSONString(result.pData);
249+
arguments.PushNumber(0);
252250
}
253251
else
254252
{

0 commit comments

Comments
 (0)