/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2007, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
* ---
*
* type.c: typename to array offset translation
- *
+ *
* Known contributors to this file:
* Dave Pare, 1989
* Steve McClure, 2000
/*
* Search table TYPE for an element matching NAME, return its index.
+ * Accepts EF_BAD, but of course never finds anything then.
* Return M_NOTFOUND if there are no matches, M_NOTUNIQUE if there are
* several.
*/
ef_elt_byname(int type, char *name)
{
switch (type) {
+ case EF_BAD:
+ return M_NOTFOUND;
case EF_NATION:
return cnumb(name);
case EF_SECTOR_CHR: