mirror of https://github.com/deavminet/gustav.git
No class cast exception, the cast went ahead, had UB that caused a segfault somewhere
This commit is contained in:
parent
e6ef053f13
commit
13d5176a89
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue