From 2534fd1ce2674550f01ff59676ecfc07ddfd3b89 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 30 Sep 2008 22:45:26 -0700 Subject: [PATCH] Fixed reverse order of evaluation in mapchooser causing an invalid handle read (bug 3290, r=bl4nk). --- plugins/mapchooser.sp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/mapchooser.sp b/plugins/mapchooser.sp index de21d149..743e557c 100644 --- a/plugins/mapchooser.sp +++ b/plugins/mapchooser.sp @@ -336,8 +336,11 @@ public Action:Timer_StartMapVote(Handle:timer, Handle:data) { 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; }