warning about scripts

small crashfix in autoseed
This commit is contained in:
Enno Rehling 2009-07-19 06:46:52 +00:00
parent 29bb5f4ceb
commit 322512d0cb
2 changed files with 5 additions and 1 deletions

View File

@ -1022,7 +1022,7 @@ build_island_e3(int x, int y, int numfactions, int minsize)
prepare_starting_region(r);
}
r->land->money = 50000; /* 2% = 1000 silver */
} else {
} else if (r->land) {
r->land->money *= 4;
}
}

View File

@ -50,6 +50,10 @@ end
function process(orders)
-- initialize starting equipment for new players
if open_game==nil then
print("did you load default.lua?")
return -1
end
if open_game(get_turn())~=0 then
print("could not read game")