Skip to content

Commit

Permalink
LPCSTR -> string32 for section buffer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Neloreck committed Jan 18, 2024
1 parent 86e281e commit 29536f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/xrGame/alife_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void CSE_ALifeObject::spawn_supplies(LPCSTR ini_string)
#pragma warning(pop)

u8 loadout_index = 1;
LPCSTR loadout_section = "spawn_loadout";
string32 loadout_section = "spawn_loadout";

// Alundaio: This will spawn a single random section listed in [spawn_loadout].
// No need to spawn ammo, this will automatically spawn 1 box for weapon and if ammo_type is specified it will spawn that type.
Expand Down Expand Up @@ -138,7 +138,6 @@ void CSE_ALifeObject::spawn_supplies(LPCSTR ini_string)
}

loadout_index += 1;
string32 buf;
xr_sprintf(loadout_section, "spawn_loadout%d", loadout_index);
}
// -Alundaio
Expand Down

0 comments on commit 29536f2

Please sign in to comment.