Fix segfault caused by 2006-05-01T22:54:40Z!patrick_x99@hotmail.com: you cannot overwrite string literals!
This commit is contained in:
parent
53885b52aa
commit
f7545d77a0
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ bool gamemap::filter_location(const gamemap::location &loc,const config & /*con*
|
|||
void gamemap::write_terrain(const gamemap::location &loc, config& cfg) const
|
||||
{
|
||||
//will need to be updated for multi-letter terrain --Sapient
|
||||
char *loc_terrain = " ";
|
||||
char loc_terrain[] = " ";
|
||||
*loc_terrain = get_terrain(loc);
|
||||
cfg["terrain"] = loc_terrain;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue