forgot to increment the tail number (would have made a mess of maps with more than one duplicate of a texture name)

This commit is contained in:
Bill Currie 2007-05-09 10:08:35 +00:00 committed by Jeff Teunissen
parent 3528e803c1
commit 787a9bc182
1 changed files with 1 additions and 1 deletions

View File

@ -356,7 +356,7 @@ unique_name (wad_t *wad, const char *name)
do {
strncpy (uname, name, 16);
uname[15] = 0;
tag = va ("~%x", i);
tag = va ("~%x", i++);
if (strlen (uname) + strlen (tag) <= 15)
strcat (uname, tag);
else