[Fix] Secondary weapons no longer seg fault upon cycling through.
This commit is contained in:
		
							parent
							
								
									f5d5441fd2
								
							
						
					
					
						commit
						0421e2a43b
					
				| @ -430,7 +430,7 @@ void player_render(void) { | |||||||
| 
 | 
 | ||||||
|       gl_printMid(f, (int)gui.weapon.w, gui.weapon.x, |       gl_printMid(f, (int)gui.weapon.w, gui.weapon.x, | ||||||
|             gui.weapon.y - 5, |             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.
 |       // Print ammo underneath to the left.
 | ||||||
|       gl_printMid(&gl_smallFont, (int)gui.weapon.w, gui.weapon.x, |       gl_printMid(&gl_smallFont, (int)gui.weapon.w, gui.weapon.x, | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Allanis
						Allanis