IS4Code / PawnPlus

A SA-MP plugin enhancing the capabilities of the Pawn programming language
MIT License
102 stars 17 forks source link

map_clear_deep removes reference #34

Closed drakeee closed 4 years ago

drakeee commented 4 years ago

I don't know if it's intentional or not buf if you use map_clear_deep map becomes invalid. It seems that map_clear don't reproduce this error.

Code:

new Map:test = map_new();
map_clear_deep(test);

for_map(i : test)
{

}

Message log: [PawnPlus] map_iter: map reference is invalid (value 0x629CD4)

IS4Code commented 4 years ago

Already fixed by 28e569dd86edb9d8b87a0e6ef91bceb50ea86548.