(svn r27770) -Fix [FS#6540]: Initialize variables in station_sl.cpp (JGR)
This commit is contained in:
@@ -325,6 +325,10 @@ static void SwapPackets(GoodsEntry *ge)
|
|||||||
|
|
||||||
static void Load_STNS()
|
static void Load_STNS()
|
||||||
{
|
{
|
||||||
|
_cargo_source_xy = 0;
|
||||||
|
_cargo_days = 0;
|
||||||
|
_cargo_feeder_share = 0;
|
||||||
|
|
||||||
int index;
|
int index;
|
||||||
while ((index = SlIterateArray()) != -1) {
|
while ((index = SlIterateArray()) != -1) {
|
||||||
Station *st = new (index) Station();
|
Station *st = new (index) Station();
|
||||||
@@ -514,8 +518,9 @@ static void Save_STNN()
|
|||||||
|
|
||||||
static void Load_STNN()
|
static void Load_STNN()
|
||||||
{
|
{
|
||||||
int index;
|
_num_flows = 0;
|
||||||
|
|
||||||
|
int index;
|
||||||
while ((index = SlIterateArray()) != -1) {
|
while ((index = SlIterateArray()) != -1) {
|
||||||
bool waypoint = (SlReadByte() & FACIL_WAYPOINT) != 0;
|
bool waypoint = (SlReadByte() & FACIL_WAYPOINT) != 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user