Skip to content

Commit

Permalink
修正两个崩溃bug
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Feb 22, 2014
1 parent 49615ca commit 9b34170
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Development/Editor/Core/ydbase/base/warcraft3/jass/func_value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ namespace warcraft3 { namespace jass {
{
static mapping m = mapping::initialize_from_register();

if (!proc_name)
{
return nullptr;
}

auto it = m.find(proc_name);
if (it != m.end() && it->second.is_valid())
{
Expand All @@ -167,6 +172,11 @@ namespace warcraft3 { namespace jass {

func_value const* japi_func(const char* proc_name)
{
if (!proc_name)
{
return nullptr;
}

auto it = japi_mapping.find(proc_name);
if (it != japi_mapping.end() && it->second.is_valid())
{
Expand Down

0 comments on commit 9b34170

Please sign in to comment.