Permalink
Browse files

old bgm branch fixes

  • Loading branch information...
1 parent 437fe05 commit fecd7fe1daf0eaece91f174bb01a9cc4462fafbf @spond spond committed Mar 9, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/core/batchlan.cpp
  2. +1 −1 src/core/batchlan2.cpp
View
@@ -4999,7 +4999,7 @@ void _ElementaryCommand::ExecuteCase35 (_ExecutionList& chain)
switch (typeFlag)
{
case HY_BL_BGM: { // BGM Branch
- #if defined __AFYP_REWRITE_BGM__
+#if defined __AFYP_REWRITE_BGM__
_BayesianGraphicalModel * lkf = (_BayesianGraphicalModel *) theObject;
// set data matrix
@@ -5130,7 +5130,7 @@ void _ElementaryCommand::ExecuteCase35 (_ExecutionList& chain)
return;
}
#else
- Bgm * lkf = (Bgm *) bgmList (bgm_index);
+ Bgm * lkf = (Bgm *) theObject;
if (currentArgument->Equal (&bgmData)) {
_Matrix * dataMx = (_Matrix *) FetchObjectFromVariableByType ( &AppendContainerName ( *(_String *) parameters (2), chain.nameSpacePrefix), MATRIX);
if (dataMx) {
View
@@ -4019,7 +4019,7 @@ BaseRef _HYRetrieveBLObjectByName (_String& name, long& type, long *index)
if (type & HY_BL_BGM) {
loc = FindBgmName (name);
if (loc >= 0) {
- type = HY_BL_SCFG;
+ type = HY_BL_BGM;
if (index) {
*index = loc;
}

0 comments on commit fecd7fe

Please sign in to comment.