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

@ -336,8 +336,11 @@ public Action:Timer_StartMapVote(Handle:timer, Handle:data)
{ {
return Plugin_Stop; return Plugin_Stop;
} }
new MapChange:mapChange = MapChange:ReadPackCell(data);
new Handle:hndl = Handle:ReadPackCell(data);
InitiateVote(MapChange:ReadPackCell(data), Handle:ReadPackCell(data)); InitiateVote(mapChange, hndl);
return Plugin_Stop; return Plugin_Stop;
} }