mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Fixed CTD in editor when changing detailed civ placement from wheelchair to jeep
Fixed memory corruption in detailed placement due to old-inventory behavior Added Editor.slf to files JA2/Editor will load from Fixed FindBestPath to not search for a path to NOWHERE git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1362 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2075,6 +2075,7 @@ void ChangeBodyType( INT8 bOffset ) //+1 or -1 only
|
||||
break;
|
||||
}
|
||||
SetSoldierAnimationSurface( gpSelected->pSoldier, gpSelected->pSoldier->usAnimState );
|
||||
ConvertAniCodeToAniFrame( gpSelected->pSoldier, 0 );
|
||||
}
|
||||
//Update the placement's info as well.
|
||||
gpSelected->pBasicPlacement->bBodyType = (INT8)iIndex;
|
||||
@@ -2973,7 +2974,9 @@ void UpdateMercItemSlots()
|
||||
{
|
||||
if( gpSelected->pDetailedPlacement->ubProfile != NO_PROFILE )
|
||||
{
|
||||
memcpy( &gpSelected->pDetailedPlacement->Inv, &gpSelected->pSoldier->inv, sizeof( OBJECTTYPE ) * NUM_INV_SLOTS );
|
||||
// 0verhaul: Inventory is now a C++ class. Bad memcpy! No biscuit!
|
||||
//memcpy( &gpSelected->pDetailedPlacement->Inv, &gpSelected->pSoldier->inv, sizeof( OBJECTTYPE ) * NUM_INV_SLOTS );
|
||||
gpSelected->pDetailedPlacement->Inv = gpSelected->pSoldier->inv;
|
||||
}
|
||||
for( x = 0; x < 9; x++ )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user