First implementation for the conversation system (not 100% finished yet)

This commit is contained in:
WolverinDEV
2019-07-19 22:55:03 +02:00
parent dd0eaf33e5
commit e507d1f75d
20 changed files with 1545 additions and 44 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ void AbstractMusicPlayer::registerEventHandler(const std::string& key, const std
void AbstractMusicPlayer::unregisterEventHandler(const std::string& string) {
threads::MutexLock lock(this->eventLock);
for(const auto& entry : this->eventHandlers){
if(entry.first == string){
if(entry.first == string) {
this->eventHandlers.erase(find_if(this->eventHandlers.begin(), this->eventHandlers.end(), [string](const std::pair<std::string, std::function<void(MusicEvent)>>& elm){ return elm.first == string; }));
break;
}