浏览代码

Apply suggestions from code review

Co-authored-by: Andrey Filipenkov <[email protected]>
Nordsoft91 3 年之前
父节点
当前提交
824aec8416
共有 3 个文件被更改,包括 4 次插入3 次删除
  1. 1 1
      config/translate.json
  2. 2 1
      lib/CModHandler.h
  3. 1 1
      lib/NetPacksLobby.h

+ 1 - 1
config/translate.json

@@ -32,7 +32,7 @@
 		"errors" :
 		{
 			"existingProcess" : "Another vcmiserver process is running, please terminate it first",
-			"modsIncompatibility" : "Mods are required to load game:"
+			"modsIncompatibility" : "Required mods to load game:"
 		}
 	},
 	"systemOptions" :

+ 2 - 1
lib/CModHandler.h

@@ -396,7 +396,8 @@ public:
 			h & newActiveMods;
 			
 			Incompatibility::ModList missingMods;
-			for(auto & m : newActiveMods)
+			for(const auto & m : newActiveMods)
+
 			{
 				CModInfo::Version mver;
 				h & mver;

+ 1 - 1
lib/NetPacksLobby.h

@@ -316,7 +316,7 @@ struct LobbyShowMessage : public CLobbyPackToPropagate
 	
 	void applyOnLobbyScreen(CLobbyScreen * lobby, CServerHandler * handler);
 	
-	template <typename Handler> void serialize(Handler &h, const int version)
+	template <typename Handler> void serialize(Handler & h, const int version)
 	{
 		h & message;
 	}