about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-03-02 15:55:02 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-03-02 15:55:02 +0000
commitbb5cfafd7c21300f0d855f8534065b1b4baf77b1 (patch)
tree5e387428518b1feab995624b6f07a69e1e3086ad /src
parent323ea57485119e6c41847939ffe7df18ef49981c (diff)
downloadzcatch-bb5cfafd7c21300f0d855f8534065b1b4baf77b1.tar.gz
zcatch-bb5cfafd7c21300f0d855f8534065b1b4baf77b1.zip
fixed so that images get a name when they are just added
Diffstat (limited to 'src')
-rw-r--r--src/game/editor/ed_editor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/editor/ed_editor.cpp b/src/game/editor/ed_editor.cpp
index 3d1b5320..24df8b94 100644
--- a/src/game/editor/ed_editor.cpp
+++ b/src/game/editor/ed_editor.cpp
@@ -1394,6 +1394,7 @@ static void add_image(const char *filename)
 	*img = imginfo;
 	img->tex_id = gfx_load_texture_raw(imginfo.width, imginfo.height, imginfo.format, imginfo.data, IMG_AUTO);
 	img->external = 1; // external by default
+	extract_name(filename, img->name);
 	editor.map.images.add(img);
 }