shithub: wipeout

Download patch

ref: 84d34193704af6bddc86a3c6a5036fe97729b322
parent: 355623f7250f1602a6bda49a15d33c9cd6cdae9f
author: Jacob Moody <[email protected]>
date: Sun Aug 27 15:18:55 EDT 2023

revert warning changes to main_menu.c

--- a/src/wipeout/main_menu.c
+++ b/src/wipeout/main_menu.c
@@ -504,7 +504,7 @@
 }
 
 #define objects_unpack(DEST, SRC) \
-	objects_unpack_imp((Object **)DEST, sizeof(DEST)/sizeof(Object*), SRC)
+	objects_unpack_imp((Object **)&DEST, sizeof(DEST)/sizeof(Object*), SRC)
 
 static void objects_unpack_imp(Object **dest_array, int len, Object *src) {
 	int i;
@@ -527,10 +527,10 @@
 	objects_unpack(models.race_classes, objects_load("wipeout/common/leeg.prm", image_get_compressed_textures("wipeout/common/leeg.cmp")));
 	objects_unpack(models.teams, objects_load("wipeout/common/teams.prm", texture_list_empty()));
 	objects_unpack(models.pilots, objects_load("wipeout/common/pilot.prm", image_get_compressed_textures("wipeout/common/pilot.cmp")));
-	objects_unpack(&models.options, objects_load("wipeout/common/alopt.prm", image_get_compressed_textures("wipeout/common/alopt.cmp")));
+	objects_unpack(models.options, objects_load("wipeout/common/alopt.prm", image_get_compressed_textures("wipeout/common/alopt.cmp")));
 	objects_unpack(models.rescue, objects_load("wipeout/common/rescu.prm", image_get_compressed_textures("wipeout/common/rescu.cmp")));
 	objects_unpack(models.controller, objects_load("wipeout/common/pad1.prm", image_get_compressed_textures("wipeout/common/pad1.cmp")));
-	objects_unpack(&models.misc, objects_load("wipeout/common/msdos.prm", image_get_compressed_textures("wipeout/common/msdos.cmp")));
+	objects_unpack(models.misc, objects_load("wipeout/common/msdos.prm", image_get_compressed_textures("wipeout/common/msdos.cmp")));
 
 	menu_reset(main_menu);
 	page_main_init(main_menu);