[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> <Start>
<name>Dark Tides</name> <name>Dark Tides</name>
<player> <player>
<ship>Goddard</ship> <ship>Lancelot</ship>
<credits> <credits>
<low>500000</low> <low>500000</low>
<high>1500000</high> <high>1500000</high>

View File

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