]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't try removing something from an intrusive list if it isn't in the list, fixes...
authorMario <mario@smbclan.net>
Tue, 7 Mar 2017 19:26:05 +0000 (05:26 +1000)
committerMario <mario@smbclan.net>
Tue, 7 Mar 2017 19:26:29 +0000 (05:26 +1000)
qcsrc/lib/intrusivelist.qh

index 9d3ec54c8e76c1f395ccd83b4ea2cfb585e5d7a7..c83b2e69c7e0e71908be3e075e2b9506d06447f7 100644 (file)
@@ -121,6 +121,7 @@ void IL_REMOVE(IntrusiveList this, entity it)
        assert(this, return);
        .entity il_next = this.il_nextfld;
        .entity il_prev = this.il_prevfld;
+       assert(!IL_CONTAINS(this, it), return);
        entity next = it.(il_next);
        entity prev = it.(il_prev);
        entity ohead = this.il_head;