1
0
forked from 0ad/0ad

Stopped crash when restarting a game

This was SVN commit r1926.
This commit is contained in:
Ykkrosh 2005-02-20 23:55:07 +00:00
parent a52d392f4f
commit 3776f91aeb

View File

@ -18,7 +18,8 @@ CLightEnv g_LightEnv;
void CWorld::Initialize(CGameAttributes *pAttribs)
{
g_EntityTemplateCollection.loadTemplates();
// TODO: Find a better way of handling these global things
ONCE(g_EntityTemplateCollection.loadTemplates());
// Load the map, if one was specified
if (pAttribs->m_MapFile.Length())