diff --git a/scripts/ai/include/basic.lua b/scripts/ai/include/basic.lua index 344b082..83b3335 100644 --- a/scripts/ai/include/basic.lua +++ b/scripts/ai/include/basic.lua @@ -20,7 +20,7 @@ function land() -- Need to start braking. elseif dist < bdist then ai.poptask() - ai.pushtask(0, "landstop", target) + ai.pushtask(0, "landstop") end end diff --git a/src/pilot.c b/src/pilot.c index f12487f..635af8d 100644 --- a/src/pilot.c +++ b/src/pilot.c @@ -1381,7 +1381,7 @@ unsigned int pilot_create(Ship* ship, char* name, int faction, char* ai, const double dir, const Vec2* pos, const Vec2* vel, const int flags) { - Pilot** tp, *dyn; + Pilot* dyn; dyn = MALLOC_L(Pilot); if(dyn == NULL) { @@ -1393,7 +1393,6 @@ unsigned int pilot_create(Ship* ship, char* name, int faction, /* See if memory needs to grow. */ if(pilot_nstack+1 > pilot_mstack) { /* Needs to grow. */ pilot_mstack += PILOT_CHUNK; - tp = pilot_stack; pilot_stack = realloc(pilot_stack, pilot_mstack*sizeof(Pilot*)); }