Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
illuna-minetest
Commits
6f661f77
Commit
6f661f77
authored
11 years ago
by
sapier
Browse files
Options
Downloads
Patches
Plain Diff
Don't lookup node texts in a endless recursion loop
parent
0fd5c61c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/nodemetadata.h
+2
-2
2 additions, 2 deletions
src/nodemetadata.h
with
2 additions
and
2 deletions
src/nodemetadata.h
+
2
−
2
View file @
6f661f77
...
...
@@ -55,7 +55,7 @@ class NodeMetadata
i
=
m_stringvars
.
find
(
name
);
if
(
i
==
m_stringvars
.
end
())
return
""
;
return
resolveString
(
i
->
second
)
;
return
i
->
second
;
}
void
setString
(
const
std
::
string
&
name
,
const
std
::
string
&
var
)
{
...
...
@@ -68,7 +68,7 @@ class NodeMetadata
std
::
string
resolveString
(
const
std
::
string
&
str
)
const
{
if
(
str
.
substr
(
0
,
2
)
==
"${"
&&
str
[
str
.
length
()
-
1
]
==
'}'
)
return
resolveString
(
getString
(
str
.
substr
(
2
,
str
.
length
()
-
3
))
)
;
return
getString
(
str
.
substr
(
2
,
str
.
length
()
-
3
));
return
str
;
}
std
::
map
<
std
::
string
,
std
::
string
>
getStrings
()
const
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment