Skip to content

Commit

Permalink
Исправлен вылет на GZDoom 4.8pre.
Browse files Browse the repository at this point in the history
Спасибо ika707.
  • Loading branch information
MorthimerMcMare committed Apr 2, 2022
1 parent 8164bec commit 5560bf7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ZScript/AutoAmbientCore/SListSpawned.zsc
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,16 @@ class AutoAmbientListSpawnedKeeper play {
}

void Clear( void ) {
AutoAmbientListSpawnedNode curNode = head;
head = tail = NULL;

/*AutoAmbientListSpawnedNode curNode = head;
AutoAmbientListSpawnedNode prevNode;

while ( curNode ) {
prevNode = curNode;
curNode = curNode.next;
prevNode.Destroy();
}
}*/

length = 0;
} // of void Clear( void ) {}
Expand All @@ -96,7 +98,7 @@ class AutoAmbientListSpawnedKeeper play {
if ( curDelay <= 0.0 ) {
prevNode.next = curNode.next;
curNode.thing.Destroy();
curNode.Destroy();
//curNode.Destroy();
curNode = prevNode.next;
length--;

Expand Down

0 comments on commit 5560bf7

Please sign in to comment.