Permalink
Browse files

a map path longer than 49 characters is now considered invalid.

git-svn-id: http://ghostplusplus.googlecode.com/svn/trunk@503 a7494f72-a4b0-11dd-a887-7ffe1a420f8d
  • Loading branch information...
xXZyZXx@gmail.com xXZyZXx@gmail.com
xXZyZXx@gmail.com authored and xXZyZXx@gmail.com committed May 31, 2010
1 parent 8fd1a70 commit 54cb727a018c2184e914807694018357fe114817
Showing with 1 addition and 1 deletion.
  1. +1 −1 ghost/map.cpp
View
@@ -883,7 +883,7 @@ void CMap :: CheckValid( )
{
// todotodo: should this code fix any errors it sees rather than just warning the user?
- if( m_MapPath.empty( ) )
+ if( m_MapPath.empty( ) || m_MapPath.length( ) >= 50 )
{
m_Valid = false;
CONSOLE_Print( "[MAP] invalid map_path detected" );

0 comments on commit 54cb727

Please sign in to comment.