mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-16 01:08:56 +00:00
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:
parent
94c064e84b
commit
7714e09382
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user