Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2011-07-12 13:03:01 +0000
committerStijn Buys <ingar@osirion.org>2011-07-12 13:03:01 +0000
commitae3127e1f98b74bab9b40ed774d4a520507a325b (patch)
treee545fc3753ff47b21104deeeb334df7df3746fda /src/game/base/jumppoint.cc
parent537aa0dcb38e400ae1fcc9c23023d37484191c4c (diff)
Save and load player inventories,
corrected a typo in saving the forward vector of the ship axis.
Diffstat (limited to 'src/game/base/jumppoint.cc')
-rw-r--r--src/game/base/jumppoint.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/base/jumppoint.cc b/src/game/base/jumppoint.cc
index 12516c0..08c7e67 100644
--- a/src/game/base/jumppoint.cc
+++ b/src/game/base/jumppoint.cc
@@ -53,7 +53,7 @@ void JumpPoint::validate()
return;
}
size_t pos = targetlabel().find(':');
- if ((pos < 1) || (pos >= (targetlabel().size() - 1))) {
+ if ((pos == std::string::npos) || (pos < 1) || (pos >= (targetlabel().size() - 1))) {
con_warn << " Jumppoint with invalid target label '" << targetlabel() << "'\n";
return;
}