another ccaloc moment
This commit is contained in:
parent
0929aa9be4
commit
98d19495a2
@ -103,7 +103,7 @@ static void benchmark(struct state *state) {
|
|||||||
void game_tick(void) {
|
void game_tick(void) {
|
||||||
if (ctx.initialization_needed) {
|
if (ctx.initialization_needed) {
|
||||||
if (!ctx.udata) {
|
if (!ctx.udata) {
|
||||||
ctx.udata = ccalloc(1, sizeof (struct state));
|
ctx.udata = calloc(1, sizeof (struct state));
|
||||||
struct state *state = ctx.udata;
|
struct state *state = ctx.udata;
|
||||||
state->r = 24;
|
state->r = 24;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user