fix linux build, kill invalid assert

This commit is contained in:
Enno Rehling 2015-08-27 16:23:30 +02:00
parent de808bf146
commit 66d8e3c7ba
2 changed files with 2 additions and 3 deletions

View File

@ -11,6 +11,8 @@
#include <kernel/item.h>
#include <kernel/region.h>
#include <limits.h>
#include <CuTest.h>
#include "tests.h"

View File

@ -5,7 +5,6 @@
#include <util/attrib.h>
#include <attributes/stealth.h>
#include <assert.h>
#include <stdlib.h>
attrib_type at_stealth = {
@ -49,8 +48,6 @@ int u_geteffstealth(const unit *u)
int eff_stealth(const unit * u, const region * r)
{
int e = 0;
assert(u->region == r); // TODO: param r is useless
/* Auf Schiffen keine Tarnung! */
if (!u->ship && skill_enabled(SK_STEALTH)) {
e = effskill(u, SK_STEALTH, r);