Fix mapvote crash
authordiv0 <div0@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Tue, 19 Jan 2010 07:38:39 +0000 (07:38 +0000)
committerdiv0 <div0@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Tue, 19 Jan 2010 07:38:39 +0000 (07:38 +0000)
git-svn-id: svn://svn.icculus.org/nexuiz/trunk@8517 f962a42d-fe04-0410-a3ab-8c8b0445ebaa

data/qcsrc/server/g_world.qc

index 0ae94fa..2bfc283 100644 (file)
@@ -2297,14 +2297,14 @@ float MapVote_SendEntity(entity to, float sf)
                                if(mapvote_abstain && i == mapvote_count - 1)
                                {
                                        WriteString(MSG_ENTITY, ""); // abstain needs no text
-                                       WriteByte(MSG_ENTITY, 0); // abstain needs no screenshot dir
                                        WriteString(MSG_ENTITY, ""); // abstain needs no pack
+                                       WriteByte(MSG_ENTITY, 0); // abstain needs no screenshot dir
                                }
                                else
                                {
                                        WriteString(MSG_ENTITY, mapvote_maps[i]);
-                                       WriteByte(MSG_ENTITY, mapvote_maps_screenshot_dir[i]);
                                        WriteString(MSG_ENTITY, mapvote_maps_pakfile[i]);
+                                       WriteByte(MSG_ENTITY, mapvote_maps_screenshot_dir[i]);
                                }
                        }
        }