Skip to content

Commit

Permalink
Fixed some errors in the template.
Browse files Browse the repository at this point in the history
  • Loading branch information
indigoparadox committed Sep 2, 2023
1 parent 641bcac commit 01fc7b1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions templates/main.c.m4
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,9 @@ int main( int argc, char** argv ) {
MAUG_MHANDLE data_h = (MAUG_MHANDLE)NULL;
struct dataa(TEMPLATE)* data = NULL;

memset( &data, '\0', sizeof( struct dataa(TEMPLATE) ) );

/* === Setup === */

memset( &args, '\0', struct RETROFLAT_ARGS );
memset( &args, '\0', sizeof( struct RETROFLAT_ARGS ) );

args.screen_w = 320;
args.screen_h = 200;
Expand All @@ -68,7 +66,7 @@ int main( int argc, char** argv ) {

/* === Main Loop === */

retroflat_loop( (retroflat_loop_iter)loopa(template), &data );
retroflat_loop( (retroflat_loop_iter)loopa(template), data );

cleanup:

Expand Down

0 comments on commit 01fc7b1

Please sign in to comment.