diff --git a/gamemodes/irresistible/cnr/features/gangs/gangs.pwn b/gamemodes/irresistible/cnr/features/gangs/gangs.pwn index b2653bb..7f8b9df 100644 --- a/gamemodes/irresistible/cnr/features/gangs/gangs.pwn +++ b/gamemodes/irresistible/cnr/features/gangs/gangs.pwn @@ -782,7 +782,11 @@ thread OnGangKickOffline( playerid, gangid ) /* ** Functions ** */ stock CreateGang( const gang_name[ 30 ], leader, gang_color, kills = 1, deaths = 1, bank = 0, score = 0, respect = 0, bool: invite_only = false, const join_message[ 96 ] = "NULL", bool: has_facility = false, sql_id = 0 ) { - new handle = Iter_Free( gangs ); + new + handle = sql_id != ITER_NONE ? sql_id : Iter_Free( gangs ); + + if ( Iter_Contains( gangs, sql_id ) ) + handle = ITER_NONE; // In the unlikelihood... if ( handle != ITER_NONE ) {