Mercurial > hg > Members > kono > Cerium
diff Renderer/Engine/SceneGraphRoot.cc @ 576:cc989924f469
minor fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 23 Oct 2009 17:02:47 +0900 |
parents | 0f13810d4492 |
children | da82a47ece92 |
line wrap: on
line diff
--- a/Renderer/Engine/SceneGraphRoot.cc Fri Oct 23 15:53:24 2009 +0900 +++ b/Renderer/Engine/SceneGraphRoot.cc Fri Oct 23 17:02:47 2009 +0900 @@ -77,7 +77,7 @@ { int dup; if ((dup = getSgid(sg->name))>=0) { // while... - sg_src[dup]->name = 0; + sg_src[dup]->name = ""; // we should remove this. but some one may use it... } if (sg_src_id+1> sg_src_size) { @@ -218,7 +218,7 @@ SceneGraphRoot::getSgid(const char *name) { for(int i =0;i<= sg_src_id; i++) { - if (strcmp(name,sg_src[i]->name) ) + if (sg_src[i] && strcmp(name,sg_src[i]->name) == 0) return i; } return -1;