viewing paste Unknown #5846 | C

Posted on the
1 2 3 4 5 6 7 8 9 10 11
static char* script_getfuncname(struct script_state *st)
{
        int i;
        char* name;
        for( i = 0; i < st->stack->sp; ++i ) {
                struct script_data* data = &st->stack->stack_data[i];
                if(data->type == C_NAME)
                        name = reference_getname(data);
        }
        return name;
}
Viewed 252 times, submitted by unknown.