mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
Resolved an inadvertent memory leak I put into the code while fixing a previous CTD.
Cleaned up the cursor graphics so that the cursor is properly updated when reloading stacks of weapons from the stack popup screen. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2058 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2850,11 +2850,6 @@ BOOLEAN ReloadGun( SOLDIERTYPE * pSoldier, OBJECTTYPE * pGun, OBJECTTYPE * pAmmo
|
||||
|
||||
bAPs = 0;
|
||||
|
||||
//CHRISL: If we enter here from the sector inventory panel, we won't have soldier info. So setup a blank soldier to
|
||||
// avoid a crash later in the code.
|
||||
if(pSoldier == NULL)
|
||||
pSoldier = new SOLDIERTYPE;
|
||||
|
||||
if ( (gTacticalStatus.uiFlags & TURNBASED) && (gTacticalStatus.uiFlags & INCOMBAT) )
|
||||
{
|
||||
//CHRISL: Alter this so we treat clip fed weapons differently from weapons that load with loose rounds
|
||||
|
||||
Reference in New Issue
Block a user