(svn r12857) -Fix [FS#1948]: remove the last uses of AutoPtr in the station code.

This commit is contained in:
rubidium
2008-04-23 22:16:41 +00:00
parent 10ab24a5f1
commit dce1b33196
12 changed files with 75 additions and 317 deletions

View File

@@ -676,7 +676,7 @@ int AllocateSpecToStation(const StationSpec *statspec, Station *st, bool exec)
{
uint i;
if (statspec == NULL) return 0;
if (statspec == NULL || st == NULL) return 0;
/* Check if this spec has already been allocated */
for (i = 1; i < st->num_specs && i < MAX_SPECLIST; i++) {