Fixed a crash

This commit is contained in:
WolverinDEV 2021-01-22 19:59:01 +01:00
parent 660fe3317f
commit 9784ce9351
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit cc696524f42ae16a2b288378e580322085b80402
Subproject commit 2e7730459d6941a97f7bc2b9b50b678ab195a41d

View File

@ -170,7 +170,7 @@ void VirtualServer::executeServerTick() {
auto channels = this->channelTree->channels();
channel_lock.unlock();
for(const auto& channel : this->channelTree->channels()){
for(const auto& channel : channels){
if(channel->channelType() == ChannelType::temporary) {
auto server_channel = dynamic_pointer_cast<ServerChannel>(channel);
assert(server_channel);