mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
- Changed mem allocation "_alloca" to "MemAlloc" because otherwise it does not compile in "Debug" mode
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@524 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -7027,7 +7027,7 @@ void ItemPickMenuMouseMoveCallback( MOUSE_REGION * pRegion, INT32 iReason )
|
|||||||
|
|
||||||
// Nonomori: Fix crash caused by stealing ammo in a sector with no items loaded.
|
// Nonomori: Fix crash caused by stealing ammo in a sector with no items loaded.
|
||||||
// memcpy( &(gItemPickupMenu.CompAmmoObject), &( gWorldItems[ pTempItemPool->iItemIndex ].o ), sizeof( OBJECTTYPE ) );
|
// memcpy( &(gItemPickupMenu.CompAmmoObject), &( gWorldItems[ pTempItemPool->iItemIndex ].o ), sizeof( OBJECTTYPE ) );
|
||||||
OBJECTTYPE * pCompAmmoObject = (OBJECTTYPE *) _alloca( sizeof( OBJECTTYPE ) );
|
OBJECTTYPE * pCompAmmoObject = (OBJECTTYPE *) MemAlloc( sizeof( OBJECTTYPE ) );
|
||||||
if ( gWorldItems && gWorldItems[ pTempItemPool->iItemIndex ].fExists )
|
if ( gWorldItems && gWorldItems[ pTempItemPool->iItemIndex ].fExists )
|
||||||
pCompAmmoObject = &( gWorldItems[ pTempItemPool->iItemIndex ].o );
|
pCompAmmoObject = &( gWorldItems[ pTempItemPool->iItemIndex ].o );
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user