Skip to content

Commit

Permalink
initialize variable, fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
ennorehling committed Jun 10, 2024
1 parent f25267c commit b4d7ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/move.c
Original file line number Diff line number Diff line change
Expand Up @@ -1899,7 +1899,7 @@ static void sail(unit * u, order * ord, bool drifting)
double damage_storm = storms_enabled ? config_get_flt("rules.ship.damage_storm", 0.02) : 0.0;
int lighthouse_div = config_get_int("rules.storm.lighthouse.divisor", 0);
const char *token = getstrtoken();
building *harbour;
building *harbour = NULL;

error = movewhere(u, token, starting_point, &next_point);
if (error) {
Expand Down

0 comments on commit b4d7ace

Please sign in to comment.