Fix assert after failed login.

reset_login(), among others, sets the state back to STATE_LOGIN_SHOW,
which then causes gViewerWindow->initWorldUI() to be called, which
is the (only) function that calls
LLMenuOptionPathfindingRebakeNavmesh::initialize.
In other words, it's perfectly normal to enter that function
a second time and the assert is erroneous.
This commit is contained in:
Aleric Inglewood
2012-12-29 18:08:46 +01:00
parent e666c60e7d
commit a25c405eae

View File

@@ -70,7 +70,6 @@ LLMenuOptionPathfindingRebakeNavmesh::~LLMenuOptionPathfindingRebakeNavmesh()
void LLMenuOptionPathfindingRebakeNavmesh::initialize() void LLMenuOptionPathfindingRebakeNavmesh::initialize()
{ {
llassert(!mIsInitialized);
if (!mIsInitialized) if (!mIsInitialized)
{ {
mIsInitialized = true; mIsInitialized = true;