1.1 --- a/plugins/mapchooser.sp Wed Oct 08 20:59:56 2008 +1300
1.2 +++ b/plugins/mapchooser.sp Wed Oct 08 21:02:01 2008 +1300
1.3 @@ -884,7 +884,8 @@
1.4
1.5 new index;
1.6
1.7 - if ((index = FindValueInArray(g_NominateOwners, owner)) != -1)
1.8 + /* Look to replace an existing nomination by this client - Nominations made with owner = 0 aren't replaced */
1.9 + if (owner && ((index = FindValueInArray(g_NominateOwners, owner)) != -1))
1.10 {
1.11 new String:oldmap[33];
1.12 GetArrayString(g_NominateList, index, oldmap, sizeof(oldmap));
1.13 @@ -893,7 +894,6 @@
1.14 Call_PushCell(owner);
1.15 Call_Finish();
1.16
1.17 -
1.18 SetArrayString(g_NominateList, index, map);
1.19 return Nominate_Replaced;
1.20 }