From dd7db5b3308b839995bfa211fb77ced6aa2f696e Mon Sep 17 00:00:00 2001 From: FelixBrendel Date: Thu, 17 Oct 2019 14:45:37 +0200 Subject: [PATCH] remove npe when element not found --- hashmap.hpp | 1 - 1 file changed, 1 deletion(-) diff --git a/hashmap.hpp b/hashmap.hpp index 259d959..33008fc 100644 --- a/hashmap.hpp +++ b/hashmap.hpp @@ -89,7 +89,6 @@ struct Hash_Map { if (index != -1) { return data[index].object; } - int a = *((int*)(nullptr)); return 0; }