Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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());
}