From 63be5f943571a2bca1c433cf52d6bc276d619c44 Mon Sep 17 00:00:00 2001 From: = <=> Date: Wed, 6 May 2020 05:20:09 +0100 Subject: [PATCH] Corrected bad error printing on PC --- src/object.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/object.c b/src/object.c index 80d3df4..7920f30 100644 --- a/src/object.c +++ b/src/object.c @@ -74,6 +74,9 @@ void addToList(Object *dest, const Object src) void printErr(const Object *obj) { #ifdef STANDALONE + if(!obj || obj->type != TYPE_ERROR) + return; + printf("%s\n", errorText[(int)(obj->err)]); #endif return;