No class cast exception, the cast went ahead, had UB that caused a segfault somewhere

This commit is contained in:
Tristan B. Kildaire 2021-01-28 13:56:39 +02:00
parent e6ef053f13
commit 13d5176a89
1 changed files with 1 additions and 1 deletions

View File

@ -331,7 +331,7 @@ public final class Connection : Thread
{
/* Make sure the object is of type `Channel` */
if(typeid(area) == typeid(Channel))
if(typeid(area) == typeid(User))
{
/* Down-cast */
User user = cast(User)area;