Skip to content

Commit ced76e0

Browse files
committed
xrCore/Model: Fixed cross-initialization.
There is "goto RESTART_MODEL" before the Successor allocation.
1 parent 705dbc5 commit ced76e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/xrCore/Model.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,8 @@ static inline void UpdateModel( PPM_CONTEXT* MinContext)
520520
}
521521
}
522522

523+
PPM_CONTEXT *Successor = 0;
524+
523525
if( !OrderFall && FSuccessor)
524526
{
525527
FoundState->Successor=CreateSuccessors(TRUE,p,MinContext);
@@ -531,7 +533,7 @@ static inline void UpdateModel( PPM_CONTEXT* MinContext)
531533

532534
*pText++ = FSymbol;
533535

534-
PPM_CONTEXT* Successor = (PPM_CONTEXT*) pText;
536+
Successor = (PPM_CONTEXT*) pText;
535537

536538
if (pText >= UnitsStart)
537539
goto RESTART_MODEL;

0 commit comments

Comments
 (0)