aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-01-03 00:12:24 +0000
committergingerBill <bill@gingerbill.org>2019-01-03 00:12:24 +0000
commitdd28fe6e82cca59ad5104275ffbbfa2e7d5fd33a (patch)
treec5f2753705858f54bc34f629252b0e3f9d4a1f85 /src/types.cpp
parentcda0f4d8f37e738af30141c134419c412a580e0c (diff)
Update CEL
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/types.cpp b/src/types.cpp
index e6010b1e5..cd610d3cb 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -1338,6 +1338,9 @@ bool is_type_polymorphic(Type *t, bool or_specialized=false) {
break;
case Type_Map:
+ if (t->Map.key == nullptr || t->Map.value == nullptr) {
+ return false;
+ }
if (is_type_polymorphic(t->Map.key, or_specialized)) {
return true;
}