summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/branch.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/branch.cc')
-rw-r--r--crawl-ref/source/branch.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/branch.cc b/crawl-ref/source/branch.cc
index 87ed88e193..9fd09b3e7e 100644
--- a/crawl-ref/source/branch.cc
+++ b/crawl-ref/source/branch.cc
@@ -28,10 +28,9 @@ bool at_branch_bottom()
branch_type str_to_branch(const std::string &branch, branch_type err)
{
for (int i = 0; i < NUM_BRANCHES; ++i)
- {
if (branches[i].abbrevname && branches[i].abbrevname == branch)
return (static_cast<branch_type>(i));
- }
+
return (err);
}