updated Map.cpp
This commit is contained in:
@@ -225,7 +225,10 @@ namespace hgl
|
||||
{
|
||||
if(index<0||index>=data_list.GetCount())return(false);
|
||||
|
||||
DataPair *ds=data_list[index];
|
||||
DataPair *ds;
|
||||
|
||||
if(!data_list.Get(index,ds))
|
||||
return(false);
|
||||
|
||||
f=ds->left;
|
||||
t=ds->right;
|
||||
@@ -244,7 +247,10 @@ namespace hgl
|
||||
{
|
||||
if(index<0||index>=data_list.GetCount())return(false);
|
||||
|
||||
DataPair *ds=data_list[index];
|
||||
DataPair *ds;
|
||||
|
||||
if(!data_list.Get(index,ds))
|
||||
return(false);
|
||||
|
||||
f=ds->left;
|
||||
|
||||
@@ -262,9 +268,10 @@ namespace hgl
|
||||
{
|
||||
if(index<0||index>=data_list.GetCount())return(false);
|
||||
|
||||
DataPair *ds=data_list[index];
|
||||
DataPair *ds;
|
||||
|
||||
if(!ds)return(false);
|
||||
if(!data_list.Get(index,ds))
|
||||
return(false);
|
||||
|
||||
t=ds->right;
|
||||
|
||||
|
Reference in New Issue
Block a user