DIRECTOR: LINGO: Remove duplicate insert in b_addProp

Previously, all property list inserts would happen twice, causing
widespread mayhem. Property lists are allowed to have duplicate keys,
which may have disguised the impact of this bug.

Fixes lots of voice clips playing twice in DEVO Presents: Adventures
of the Smart Patrol.
This commit is contained in:
Scott Percival 2022-11-18 11:20:17 +08:00 committed by Eugene Sandulenko
parent 94c064e84b
commit 7714e09382

View File

@ -591,7 +591,6 @@ void LB::b_addProp(int nargs) {
TYPECHECK(list, PARRAY);
PCell cell = PCell(prop, value);
list.u.parr->arr.push_back(cell);
if (list.u.parr->_sorted) {
if (list.u.parr->arr.empty())