diff options
author | epoch <epoch@hacking.allowed.org> | 2020-04-03 03:18:08 -0500 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2020-04-03 03:18:08 -0500 |
commit | 4e8281fc12c7fe71b1a0370dc144c6d7b7356757 (patch) | |
tree | 584ded43dda1e8ab9fa6dc37cd7f418762f574eb /src/math.c | |
parent | 644b0ed4ab3a021982c37b15e8a15da3da964565 (diff) | |
download | hackvr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++) { |