diff options
Diffstat (limited to 'src/engine.cpp')
-rw-r--r-- | src/engine.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index dfe24168b..7e7959e26 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -493,13 +493,10 @@ void EnginesMonthlyLoop() static bool IsUniqueEngineName(const char *name) { - char buf[512]; - const Engine *e; + FOR_ALL_ENGINES(e) { - SetDParam(0, e->index); - GetString(buf, STR_ENGINE_NAME, lastof(buf)); - if (strcmp(buf, name) == 0) return false; + if (e->name != NULL && strcmp(e->name, name) == 0) return false; } return true; |