Moved more files around, working on VN engine

This commit is contained in:
2023-04-20 14:08:02 -07:00
parent 6d86fc10bc
commit cacda495d3
5 changed files with 103 additions and 11 deletions

View File

@ -39,8 +39,9 @@ namespace Dawn {
* @param args Arguments for this event to pass to the listeners.
*/
void invoke(A... args) {
auto it = this->_eventListeners.begin();
while(it != this->_eventListeners.end()) {
auto copy = this->_eventListeners;
auto it = copy.begin();
while(it != copy.end()) {
it->listener(args...);
++it;
}