• Robert Sprowson's avatar
    Minor debug fixes · fbb7e4e0
    Robert Sprowson authored
    PSprite.c: move the trace message up before the label, so if tb is NULL there isn't a NULL pointer dereference
    guard.c: refactor assert() to not check ptr!=0 a second time
    Found by cppcheck static analysis.
    Tagged as Paint-2_23-1 since both are debug code only.
    fbb7e4e0
guard 8.53 KB