Fixed a broken lookup update logic in WAD.Remove() and WAD.RemoveAt() again.

MakeSVNRelease.bat: changed log start revision from 1 to 1496 (GZDB's second commit).
This commit is contained in:
MaxED 2014-09-30 22:31:18 +00:00
parent f924dbcbbb
commit ae7d6dd3c1
2 changed files with 3 additions and 3 deletions

View file

@ -28,7 +28,7 @@ ECHO.
ECHO Writing SVN log file...
ECHO.
IF EXIST "SVN_Build\log.xml" DEL /F /Q "SVN_Build\log.xml" > NUL
svn log --xml -r HEAD:1 > "SVN_Build\log.xml"
svn log --xml -r HEAD:1496 > "SVN_Build\log.xml"
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "SVN_Build\log.xml" GOTO FILEFAIL

View file

@ -305,7 +305,7 @@ namespace CodeImp.DoomBuilder.IO
lumps.RemoveAt(index);
// Remove from lookup (mxd)
if(lookup[l.LongName].Count > 0)
if(lookup[l.LongName].Count > 1)
{
lookup[l.LongName].Remove(index);
}
@ -330,7 +330,7 @@ namespace CodeImp.DoomBuilder.IO
lump.Dispose();
// Remove from lookup (mxd)
if (lookup[lump.LongName].Count > 0)
if (lookup[lump.LongName].Count > 1)
{
lookup[lump.LongName].Remove(pos);
}