Skip to content

Commit

Permalink
Fixed: Crash when replacing text definitions
Browse files Browse the repository at this point in the history
Null pointer access.
  • Loading branch information
skyjake committed Dec 13, 2012
1 parent 9836e5b commit 8e7cf05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doomsday/engine/src/def_main.cpp
Expand Up @@ -1279,6 +1279,7 @@ void Def_Read()

for(int k = i + 1; k < countTexts.num; ++k)
{
if(!texts[k].text) continue; // Already done.
if(stricmp(defs.text[i].id, defs.text[k].id) && texts[k].text) continue;

// Update the earlier string.
Expand Down

0 comments on commit 8e7cf05

Please sign in to comment.