Skip to content

Commit

Permalink
xrCore/Model: Fixed cross-initialization.
Browse files Browse the repository at this point in the history
There is "goto RESTART_MODEL" before the Successor allocation.
  • Loading branch information
Kaffeine committed Nov 6, 2015
1 parent 705dbc5 commit ced76e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/xrCore/Model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,8 @@ static inline void UpdateModel( PPM_CONTEXT* MinContext)
}
}

PPM_CONTEXT *Successor = 0;

if( !OrderFall && FSuccessor)
{
FoundState->Successor=CreateSuccessors(TRUE,p,MinContext);
Expand All @@ -531,7 +533,7 @@ static inline void UpdateModel( PPM_CONTEXT* MinContext)

*pText++ = FSymbol;

PPM_CONTEXT* Successor = (PPM_CONTEXT*) pText;
Successor = (PPM_CONTEXT*) pText;

if (pText >= UnitsStart)
goto RESTART_MODEL;
Expand Down

0 comments on commit ced76e0

Please sign in to comment.