diff options
| author | epoch <epoch@hacking.allowed.org> | 2020-04-02 00:59:20 -0500 | 
|---|---|---|
| committer | epoch <epoch@hacking.allowed.org> | 2020-04-02 00:59:20 -0500 | 
| commit | 90dc734eea09ce2458405f8637b940ba767c6747 (patch) | |
| tree | bb92e93a2ab156e47124c0c00838d9e5607e9b70 /src | |
| parent | 47734f5957a1a708c503a514713284c8539922ab (diff) | |
| download | hackvr-90dc734eea09ce2458405f8637b940ba767c6747.tar.gz hackvr-90dc734eea09ce2458405f8637b940ba767c6747.zip | |
I was dereferencing a value without checking it first. just stopped using the value. just to get it working again.
Diffstat (limited to 'src')
| -rw-r--r-- | src/math.c | 7 | 
1 files changed, 4 insertions, 3 deletions
| @@ -12,14 +12,15 @@ c3_group_rot_t *get_group_relative(char *id) {//crashes in here somehwere...    c3_group_rot_t *gr;    struct entry *tmp;    if((tmp=ht_getnode(&global.ht_group,id))) { -    gr=tmp->target; +    gr=tmp->target;//target is a void *      return gr;    }//if this didn't work, do fallback...    for(i=0;global.group_rot[i];i++) {      if(!strcmp(global.group_rot[i]->id,id)) {//should I use glob here and return an array?        if(gr != global.group_rot[i]) { -        fprintf(stderr,"# %s ? %s ? %s\n",tmp->original,gr->id,global.group_rot[i]->id); -        fprintf(stderr,"# %16x != %16x. wtf?\n",gr,global.group_rot[i]); +        //fprintf(stderr,"# %s ? %s ? %s\n",tmp->original,gr->id,global.group_rot[i]->id); +        //fprintf(stderr,"# %16x != %16x. wtf?\n",gr,global.group_rot[i]); +        fprintf(stderr,"ht method != loop method\n");        }        return global.group_rot[i];      } | 
