forked from mirrors/0ad
Handle disconnections better.
Remove local sessions (just use ENet for everything instead) because they add far too much complexity. Fix memory leaks. This was SVN commit r7706.
This commit is contained in:
@@ -448,7 +448,9 @@ void CXMLReader::ReadTerrain(XMBElement parent)
|
||||
m_MapReader.m_PatchesPerSide = patches;
|
||||
|
||||
// Load the texture
|
||||
CTextureEntry* texentry = g_TexMan.FindTexture(texture);
|
||||
CTextureEntry* texentry = NULL;
|
||||
if (CTextureManager::IsInitialised())
|
||||
texentry = g_TexMan.FindTexture(texture);
|
||||
|
||||
m_MapReader.pTerrain->Initialize(patches, NULL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user