GIT
/
REPO
/
FRED-BOY
Projects
/
d2df-sdl.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2809bc
)
fix crash when cancell map downloding
author
DeaDDooMER <deaddoomer@deadsoftware.ru>
Sun, 10 Nov 2019 13:19:40 +0000
(16:19 +0300)
committer
DeaDDooMER <deaddoomer@deadsoftware.ru>
Sun, 10 Nov 2019 13:19:40 +0000
(16:19 +0300)
src/game/g_net.pas
patch
|
blob
|
history
diff --git
a/src/game/g_net.pas
b/src/game/g_net.pas
index 74de6ec26d76f08cd8004763828bfd4550709018..6388eebbb6400aff322b7caebd36638f427986e9 100644
(file)
--- a/
src/game/g_net.pas
+++ b/
src/game/g_net.pas
@@
-1844,7
+1844,7
@@
end;
function g_Net_Client_Update(): enet_size_t;
begin
Result := 0;
- while (enet_host_service(NetHost, @NetEvent, 0) > 0) do
+ while (
NetHost <> nil) and (
enet_host_service(NetHost, @NetEvent, 0) > 0) do
begin
case NetEvent.kind of
ENET_EVENT_TYPE_RECEIVE:
DEADSOFTWARE 2012-2025