summaryrefslogtreecommitdiff
path: root/src/math.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math.c')
-rw-r--r--src/math.c2
1 files changed, 1 insertions, 1 deletions
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++) {