Remove duplicated names from namedef.h

- Added an assertion in FName::NameManager::InitBuckets() that makes these
  errors easier to spot in the future.
This commit is contained in:
Randy Heit 2013-10-29 21:18:30 -05:00
commit 61b419c187
2 changed files with 1 additions and 3 deletions

View file

@ -182,6 +182,7 @@ void FName::NameManager::InitBuckets ()
// Register built-in names. 'None' must be name 0.
for (size_t i = 0; i < countof(PredefinedNames); ++i)
{
assert(NULL == FindName(PredefinedNames[i], true) && "Predefined name already inserted");
FindName (PredefinedNames[i], false);
}
}