From 0421e2a43beec96e03b11fcb73e06afbe87163d6 Mon Sep 17 00:00:00 2001 From: Allanis Date: Sun, 10 Mar 2013 15:14:00 +0000 Subject: [PATCH] [Fix] Secondary weapons no longer seg fault upon cycling through. --- src/player.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/player.c b/src/player.c index 6cb9daf..44b72ae 100644 --- a/src/player.c +++ b/src/player.c @@ -430,7 +430,7 @@ void player_render(void) { gl_printMid(f, (int)gui.weapon.w, gui.weapon.x, gui.weapon.y - 5, - &cConsole, "%s", player->ammo->outfit->u.lau.ammo); + &cConsole, "%s", player->secondary->outfit->u.lau.ammo); // Print ammo underneath to the left. gl_printMid(&gl_smallFont, (int)gui.weapon.w, gui.weapon.x,