Moved more files around, working on VN engine

This commit is contained in:
YourWishes committed 2023-04-20 14:08:02 -07:00
1 parent 6d86fc10bc
commit cacda495d3
5 files changed
+103 -11

No files matched your search

+3 -2
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;
}