From 61b419c18767a09ea2f23df027163c1609b823c6 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Tue, 29 Oct 2013 21:18:30 -0500 Subject: [PATCH] Remove duplicated names from namedef.h - Added an assertion in FName::NameManager::InitBuckets() that makes these errors easier to spot in the future. --- src/name.cpp | 1 + src/namedef.h | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/name.cpp b/src/name.cpp index 36cce2595..07482ec52 100644 --- a/src/name.cpp +++ b/src/name.cpp @@ -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); } } diff --git a/src/namedef.h b/src/namedef.h index ed9f9183b..9d8496280 100644 --- a/src/namedef.h +++ b/src/namedef.h @@ -595,9 +595,6 @@ xx(string) xx(vector) xx(map) xx(array) -xx(name) xx(sound) -xx(color) xx(state) xx(fixed) -xx(angle)