fixed a potentional bug

This commit is contained in:
fourtf 2020-08-27 16:17:03 +02:00
parent 63c167f1db
commit 279a80b66f

View file

@ -294,8 +294,10 @@ void Application::initPubsub()
auto reward = ChannelPointReward(data); auto reward = ChannelPointReward(data);
postToThread([chan, reward] { postToThread([chan, reward] {
auto channel = dynamic_cast<TwitchChannel *>(chan.get()); if (auto channel = dynamic_cast<TwitchChannel *>(chan.get()))
{
channel->addChannelPointReward(reward); channel->addChannelPointReward(reward);
}
}); });
} }
else else