about summary refs log tree commit diff
path: root/src/game/editor/ed_popups.cpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-01-19 13:02:22 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-01-19 13:02:22 +0000
commitb5a6dacfa30d8f7a9714f2ea4694234b5d7c09bf (patch)
tree2dc8ff1ac4ef40e4a6f73e473439f00a78a84688 /src/game/editor/ed_popups.cpp
parent6f2b43af9b83c69134a7a5ecb6e5820c42fcb135 (diff)
downloadzcatch-b5a6dacfa30d8f7a9714f2ea4694234b5d7c09bf.tar.gz
zcatch-b5a6dacfa30d8f7a9714f2ea4694234b5d7c09bf.zip
fixed naming of images
Diffstat (limited to 'src/game/editor/ed_popups.cpp')
-rw-r--r--src/game/editor/ed_popups.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/game/editor/ed_popups.cpp b/src/game/editor/ed_popups.cpp
index e06637e1..a3fabcd6 100644
--- a/src/game/editor/ed_popups.cpp
+++ b/src/game/editor/ed_popups.cpp
@@ -343,9 +343,7 @@ int popup_select_image(RECT view)
 		}
 		else
 		{
-			char buf[64];
-			sprintf(buf, "%d", i);
-			if(do_editor_button(&editor.map.images[i], buf, i==select_image_current, &button, draw_editor_button_menuitem, 0, 0))
+			if(do_editor_button(&editor.map.images[i], editor.map.images[i]->name, i==select_image_current, &button, draw_editor_button_menuitem, 0, 0))
 				select_image_selected = i;
 		}
 	}