瀏覽代碼

Two minor fixes

Michał W. Urbańczyk 17 年之前
父節點
當前提交
001868652a
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      CMT.cpp
  2. 1 1
      map.cpp

+ 1 - 0
CMT.cpp

@@ -109,6 +109,7 @@ int _tmain(int argc, _TCHAR* argv[])
 		initDLL(cgi->bitmaph);
 
 		CGI->arth = VLC->arth;
+		CGI->creh = VLC->creh;
 		CGI->townh = VLC->townh;
 		CGI->heroh = VLC->heroh;
 		CGI->objh = VLC->objh;

+ 1 - 1
map.cpp

@@ -1858,7 +1858,7 @@ void Mapa::initFromBytes(unsigned char * bufor)
 				nt->builded = 0;
 				nt->destroyed = 0;
 				nt->garrisonHero = NULL;
-				if(nt->ID=98)
+				if(nt->ID==98)
 					towns.push_back(nt);
 				break;
 			}