Fixed reverse order of evaluation in mapchooser causing an invalid handle read (bug 3290, r=bl4nk).

This commit is contained in:
David Anderson 2008-09-30 22:45:26 -07:00
parent e10dd226ff
commit 2534fd1ce2

View File

@ -337,7 +337,10 @@ public Action:Timer_StartMapVote(Handle:timer, Handle:data)
return Plugin_Stop;
}
InitiateVote(MapChange:ReadPackCell(data), Handle:ReadPackCell(data));
new MapChange:mapChange = MapChange:ReadPackCell(data);
new Handle:hndl = Handle:ReadPackCell(data);
InitiateVote(mapChange, hndl);
return Plugin_Stop;
}