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

View file

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