|
@@ -1689,6 +1689,20 @@ if ((100*version_major +version_minor)*100+version_revision)*100+version_patch <
|
|
|
if photography_job >0:
|
|
|
photography['experience'] = photography_job & killvar 'photography_job'
|
|
|
end
|
|
|
+ ! Deduplication in $fuckbuddy
|
|
|
+ if arrsize('$fuckbuddy') > 0:
|
|
|
+ ! Loop over the array, check if the value already exists in the temp array. If not copy.
|
|
|
+ i_fb = 0
|
|
|
+ :loopFuckbuddies
|
|
|
+ if arrpos('$_fuckbuddies', '$fuckbuddy[i_fb]') = -1:
|
|
|
+ copyarr('$_fuckbuddies', '$fuckbuddy', i_fb, 1)
|
|
|
+ i_fb +=1
|
|
|
+ end
|
|
|
+ if i_fb < arrsize('$fuckbuddy') : jump 'loopFuckbuddies'
|
|
|
+ killvar '$fuckbuddy'
|
|
|
+ $fuckbuddy = $_fuckbuddies
|
|
|
+ killvar '$_fuckbuddies' & killvar 'i_fb'
|
|
|
+ end
|
|
|
end
|
|
|
|
|
|
|