GitHub - bones-ai/c-blob-survival: A small chaotic vampire-survivors inspired game written in C and raylib

1 min read Original article ↗
Process 18590 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=2, address=0x16f603ff8)
    frame #0: 0x000000010000373c game_debug`is_rect_contains_point(rect=(x = <read memory from 0x16f603ff8 failed (0 of 4 bytes read)>, y = <read memory from 0x16f603ffc failed (0 of 4 bytes read)>, w = 0, h = 0), pt=(x = <read memory from 0x16f603fe8 failed (0 of 4 bytes read)>, y = <read memory from 0x16f603fec failed (0 of 4 bytes read)>, id = <read memory from 0x16f603ff0 failed (0 of 4 bytes read)>)) at game.c:876
873
874 	// MARK: :utils
875
-> 876 	bool is_rect_contains_point(QRect rect, QPoint pt) {
877 	    return (pt.x >= rect.x - rect.w && pt.x <= rect.x + rect.w) &&
878 	           (pt.y >= rect.y - rect.h && pt.y <= rect.y + rect.h);
879 	}
Target 0: (game_debug) stopped