From 4e8281fc12c7fe71b1a0370dc144c6d7b7356757 Mon Sep 17 00:00:00 2001 From: epoch Date: Fri, 3 Apr 2020 03:18:08 -0500 Subject: left some really derpy code in the move command. added extra check to return of ht_getnode for group relative info --- src/math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/math.c') diff --git a/src/math.c b/src/math.c index bfd8b94..6a077f0 100644 --- a/src/math.c +++ b/src/math.c @@ -13,7 +13,7 @@ c3_group_rot_t *get_group_relative(char *id) {//crashes in here somehwere... struct entry *tmp; if((tmp=ht_getnode(&global.ht_group,id))) { gr=tmp->target;//target is a void * - return gr; + if(gr) return gr; }//if this didn't work, do fallback... //fprintf(stderr,"# !!! hash table failed for %s\n",id); for(i=0;global.group_rot[i];i++) { -- cgit v1.2.3