Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
ab460e7a
Unverified
Commit
ab460e7a
authored
May 27, 2020
by
Rémi Verschelde
Committed by
GitHub
May 27, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #39074 from vnen/gdscript-assert-message
Fix assert message when no custom message is set
parents
9daee31b
f29a2e26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
gdscript_function.cpp
modules/gdscript/gdscript_function.cpp
+5
-2
No files found.
modules/gdscript/gdscript_function.cpp
View file @
ab460e7a
...
...
@@ -1430,11 +1430,14 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a
#ifdef DEBUG_ENABLED
GET_VARIANT_PTR
(
test
,
1
);
GET_VARIANT_PTR
(
message
,
2
);
bool
result
=
test
->
booleanize
();
if
(
!
result
)
{
const
String
&
message_str
=
*
message
;
String
message_str
;
if
(
_code_ptr
[
ip
+
2
]
!=
0
)
{
GET_VARIANT_PTR
(
message
,
2
);
message_str
=
*
message
;
}
if
(
message_str
.
empty
())
{
err_text
=
"Assertion failed."
;
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment