[CourseContentsList] Fix a crash.
This commit is contained in:
@@ -13,6 +13,10 @@ _____________________________________________________________________________
|
|||||||
sm-ssc v1.2.5 | 201104??
|
sm-ssc v1.2.5 | 201104??
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
20110420
|
||||||
|
--------
|
||||||
|
* [CourseContentsList] Fix a crash. [AJ]
|
||||||
|
|
||||||
20110416
|
20110416
|
||||||
--------
|
--------
|
||||||
* [PlayerOptions] Added UsingReverse() Lua binding (automatically tests GetReverse() == 1) [AJ]
|
* [PlayerOptions] Added UsingReverse() Lua binding (automatically tests GetReverse() == 1) [AJ]
|
||||||
|
|||||||
@@ -78,7 +78,9 @@ void CourseContentsList::SetItemFromGameState( Actor *pActor, int iCourseEntryIn
|
|||||||
FOREACH_HumanPlayer(pn)
|
FOREACH_HumanPlayer(pn)
|
||||||
{
|
{
|
||||||
const Trail *pTrail = GAMESTATE->m_pCurTrail[pn];
|
const Trail *pTrail = GAMESTATE->m_pCurTrail[pn];
|
||||||
if( pTrail == NULL || iCourseEntryIndex >= (int) pTrail->m_vEntries.size() )
|
if( pTrail == NULL
|
||||||
|
|| iCourseEntryIndex >= (int) pTrail->m_vEntries.size()
|
||||||
|
|| iCourseEntryIndex >= (int) pCourse->m_vEntries.size() )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
const TrailEntry *te = &pTrail->m_vEntries[iCourseEntryIndex];
|
const TrailEntry *te = &pTrail->m_vEntries[iCourseEntryIndex];
|
||||||
|
|||||||
Reference in New Issue
Block a user