Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions hxbit/NetworkHost.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,9 @@ class NetworkHost {
}
var o = markHead;
while( o != null ) {
var next = o.__next;
o.__next = null;
if( markHead == o ) markHead = null;
if( (o.__bits1|o.__bits2 #if hxbit_visibility | o.__dirtyVisibilityGroups #end) != 0 ) {
if( logger != null ) {
var props = [];
Expand Down Expand Up @@ -1269,9 +1272,10 @@ class NetworkHost {
o.__dirtyVisibilityGroups = 0;
#end
}
var n = o.__next;
o.__next = null;
o = n;
o = next;
// var n = o.__next;
// o.__next = null;
// o = n;
}
markHead = null;
}
Expand Down
2 changes: 2 additions & 0 deletions hxbit/Weak.hx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ abstract Weak<T:NetworkSerializable>(UID) {
}
static function resolve( uid : UID ) : Dynamic {
var host = NetworkHost.current;
if (host == null)
return null;
var r = @:privateAccess host.globalCtx.refs.get(uid);
if( r == null ) {
var h = @:privateAccess host.registerHead;
Expand Down