summaryrefslogtreecommitdiff
path: root/src/cat/CommandInterface.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-05-07 16:59:50 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-05-07 16:59:50 (GMT)
commit51b17badf4c72270bb762ea795d05d51c8b355e3 (patch)
treeb66671e0496b68114c6e91eedb58bf783d5343c0 /src/cat/CommandInterface.cpp
parentfb111f42d00dd8a2041bae970c0913e096ac5101 (diff)
downloadpowder-51b17badf4c72270bb762ea795d05d51c8b355e3.zip
powder-51b17badf4c72270bb762ea795d05d51c8b355e3.tar.gz
A bit of refactoring (elements)
Diffstat (limited to 'src/cat/CommandInterface.cpp')
-rw-r--r--src/cat/CommandInterface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cat/CommandInterface.cpp b/src/cat/CommandInterface.cpp
index 4554b9f..e8fc7b8 100644
--- a/src/cat/CommandInterface.cpp
+++ b/src/cat/CommandInterface.cpp
@@ -88,14 +88,14 @@ int CommandInterface::GetParticleType(std::string type)
char * txt = (char*)type.c_str();
//Scope
- part_type *ptypes = m->GetSimulation()->ptypes;
+ Element * elements = m->GetSimulation()->elements;
// alternative names for some elements
if (strcasecmp(txt,"C4")==0) i = PT_PLEX;
else if (strcasecmp(txt,"C5")==0) i = PT_C5;
else if (strcasecmp(txt,"NONE")==0) i = PT_NONE;
for (i=1; i<PT_NUM; i++) {
- if (strcasecmp(txt, ptypes[i].name)==0 && ptypes[i].enabled)
+ if (strcasecmp(txt, elements[i].Name)==0 && elements[i].Enabled)
{
return i;
}