[Add] Warn if outfit isn't found.

This commit is contained in:
Allanis 2013-08-03 12:39:38 +01:00
parent 11e159ee2e
commit 62d37ab334
2 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<Start>
<name>Dark Tides</name>
<player>
<ship>Goddard</ship>
<ship>Lancelot</ship>
<credits>
<low>500000</low>
<high>1500000</high>

View File

@ -43,6 +43,8 @@ Outfit* outfit_get(const char* name) {
for(i = 0; i < outfit_nstack; i++)
if(strcmp(name, outfit_stack[i].name)==0)
return &outfit_stack[i];
WARN("Outfit '%s' not found in stack.", name);
return NULL;
}