[Fix] Small bug fixes.
This commit is contained in:
parent
2388dbcef0
commit
97bd83e7da
@ -219,6 +219,7 @@ char** space_getFactionPlanet(int* nplanets, int* factions, int nfactions) {
|
||||
tmp = realloc(tmp, sizeof(char*) * mtmp);
|
||||
}
|
||||
tmp[ntmp-1] = planet->name;
|
||||
break; // No need to check all factions.
|
||||
}
|
||||
}
|
||||
(*nplanets) = ntmp;
|
||||
|
@ -147,7 +147,7 @@ void spfx_clear(void) {
|
||||
|
||||
static void spfx_destroy(SPFX* layer, int* nlayer, int spfx) {
|
||||
(*nlayer)--;
|
||||
memmove(&layer[spfx], &layer[spfx+1], (*nlayer-spfx-1)*sizeof(SPFX));
|
||||
memmove(&layer[spfx], &layer[spfx+1], (*nlayer-spfx)*sizeof(SPFX));
|
||||
}
|
||||
|
||||
void spfx_update(const double dt) {
|
||||
|
Loading…
Reference in New Issue
Block a user