diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/Utils/MessageLogData.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/Utils/MessageLogData.cs b/scripts/Utils/MessageLogData.cs index ed30062..e8f0f09 100644 --- a/scripts/Utils/MessageLogData.cs +++ b/scripts/Utils/MessageLogData.cs @@ -16,7 +16,9 @@ private Message LastMessage { } public void ClearMessages() { - foreach (Message message in messages) { + for (int i = messages.Count - 1; i >= 0; i--) { + Message message = messages[i]; + messages.RemoveAt(i); message.QueueFree(); } } |
