This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 10123 for ps


Ignore:
Timestamp:
08/28/11 07:57:09 (13 years ago)
Author:
ben
Message:

Fixes bug on object panel (assert fail when map was loaded before the panel was displayed).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Object/Object.cpp

    r10037 r10123  
    281281        }
    282282
    283         if (m_ObjectSettings.GetPlayerID() > numPlayers)
     283        // The control may not have entries yet
     284        if (m_ObjectSettings.GetPlayerID() >= GetCount())
    284285        {
    285286            // Invalid player
    286             SetSelection((long)numPlayers);
     287            SetSelection((long)GetCount()-1);
    287288        }
    288289        else
Note: See TracChangeset for help on using the changeset viewer.