Permalink
Browse files

Fix critical bug in FindObjtypeInContainer()

Error would cause assertion failure on every call.
  • Loading branch information...
sigmantium committed Oct 10, 2018
1 parent e98e489 commit 8e6ae537fe89339c1fd1c3e58288b5b0d4e56b0e
Showing with 1 addition and 1 deletion.
  1. +1 −1 pol-core/pol/module/uomod.cpp
@@ -678,7 +678,7 @@ BObjectImp* UOExecutorModule::mf_FindObjtypeInContainer()
{
return new BError( "That is not a container" );
}
if ( !getParam( 4, flags ) )
if ( !getParam( 2, flags ) )
flags = 0;
UContainer* cont = static_cast<UContainer*>( item );

0 comments on commit 8e6ae53

Please sign in to comment.