Skip to content

Commit

Permalink
Fix stupid DestoryThreadGroup mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRevo3D committed Sep 19, 2024
1 parent 7452a7f commit 667ef8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vm/vm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,11 @@ void DestroyScriptThreads(uint32_t scriptBufferId) {
static void DestroyThreadGroup(uint32_t groupId) {
Sc3VmThread* groupThread = ThreadGroupHeads[groupId];
if (groupThread != NULL) {
while (groupThread->NextContext != NULL) {
do {
Sc3VmThread* next = groupThread->NextContext;
DestroyThread(groupThread);
groupThread = next;
}
} while (groupThread != NULL);
}
ThreadGroupHeads[groupId] = NULL;
ThreadGroupTails[groupId] = NULL;
Expand Down

0 comments on commit 667ef8f

Please sign in to comment.