mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
Update ActorEventDispatcher.cs
This commit is contained in:
@@ -102,7 +102,7 @@ namespace TEngine
|
||||
{
|
||||
Log.Info("remove delay delete eventId[{0}]", eventId);
|
||||
listListener[i] = listListener[^1];
|
||||
EventRegInfo.Release(listListener[i]);
|
||||
EventRegInfo.Release(listListener[^1]);
|
||||
listListener.RemoveAt(listListener.Count - 1);
|
||||
i--;
|
||||
}
|
||||
@@ -475,7 +475,7 @@ namespace TEngine
|
||||
else
|
||||
{
|
||||
list[i] = list[^1];
|
||||
EventRegInfo.Release(list[i]);
|
||||
EventRegInfo.Release(list[^1]);
|
||||
list.RemoveAt(list.Count - 1);
|
||||
i--;
|
||||
}
|
||||
|
Reference in New Issue
Block a user