From 13d5176a891e3a18d11b5aa1f672709586f8d7a5 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Thu, 28 Jan 2021 13:56:39 +0200 Subject: [PATCH] No class cast exception, the cast went ahead, had UB that caused a segfault somewhere --- source/Connection.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Connection.d b/source/Connection.d index e1e5206..ca7af0f 100644 --- a/source/Connection.d +++ b/source/Connection.d @@ -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;