summaryrefslogtreecommitdiff
path: root/src/math.c
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2020-04-03 03:18:08 -0500
committerepoch <epoch@hacking.allowed.org>2020-04-03 03:18:08 -0500
commit4e8281fc12c7fe71b1a0370dc144c6d7b7356757 (patch)
tree584ded43dda1e8ab9fa6dc37cd7f418762f574eb /src/math.c
parent644b0ed4ab3a021982c37b15e8a15da3da964565 (diff)
downloadhackvr-4e8281fc12c7fe71b1a0370dc144c6d7b7356757.tar.gz
hackvr-4e8281fc12c7fe71b1a0370dc144c6d7b7356757.zip
left some really derpy code in the move command. added extra check to return of ht_getnode for group relative info
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++) {