Frederic Bouvier:
The FGGlobals constructor does not initialise the locale pointer. Under MSVC, uninitialized pointer have a value of 0xcdcdcdcd, not 0, so a test in mainLoop fails and the program segfault. This patch set un initial value to locale.
This commit is contained in:
parent
5cf14e78c4
commit
f0b7744fd5
1 changed files with 2 additions and 1 deletions
|
@ -52,7 +52,8 @@ FGGlobals::FGGlobals() :
|
||||||
props(new SGPropertyNode),
|
props(new SGPropertyNode),
|
||||||
initial_state(0),
|
initial_state(0),
|
||||||
commands(new SGCommandMgr),
|
commands(new SGCommandMgr),
|
||||||
io(new FGIO)
|
io(new FGIO),
|
||||||
|
locale(NULL)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue