Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/base/spacemine.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/base/spacemine.cc b/src/game/base/spacemine.cc
index af64514..dc5f6c5 100644
--- a/src/game/base/spacemine.cc
+++ b/src/game/base/spacemine.cc
@@ -33,7 +33,9 @@ SpaceMine::SpaceMine(const core::Info *info) : EntityDynamic()
// item type model overrides template
if (info) {
set_info(info);
- set_modelname(info->modelname());
+ if (info->modelname().size()) {
+ set_modelname(info->modelname());
+ }
set_name(info->name());
set_label(info->label());
}