We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49615ca commit 9b34170Copy full SHA for 9b34170
Development/Editor/Core/ydbase/base/warcraft3/jass/func_value.cpp
@@ -154,6 +154,11 @@ namespace warcraft3 { namespace jass {
154
{
155
static mapping m = mapping::initialize_from_register();
156
157
+ if (!proc_name)
158
+ {
159
+ return nullptr;
160
+ }
161
+
162
auto it = m.find(proc_name);
163
if (it != m.end() && it->second.is_valid())
164
@@ -167,6 +172,11 @@ namespace warcraft3 { namespace jass {
167
172
168
173
func_value const* japi_func(const char* proc_name)
169
174
175
176
177
178
179
170
180
auto it = japi_mapping.find(proc_name);
171
181
if (it != japi_mapping.end() && it->second.is_valid())
182
0 commit comments