Moved more files around, working on VN engine

This commit is contained in:
2023-04-20 14:08:02 -07:00
parent 1c21c15261
commit 36119645d5
285 changed files with 104 additions and 12 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;
}