fixed usage of vfs_next_dirent

This was SVN commit r363.
This commit is contained in:
janwas 2004-06-02 16:58:55 +00:00
parent f8dafe455d
commit 7c86e3459e
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@
#include <xercesc/util/PlatformUtils.hpp>
// Gee's custom error handler
#include <ps/XercesErrorHandler.h>
#include "ps/XercesErrorHandler.h"
// automatically use namespace ..
XERCES_CPP_NAMESPACE_USE

View File

@ -13,7 +13,7 @@ void CBaseEntityCollection::loadTemplates()
handle=vfs_open_dir("entities/templates/");
if (handle > 0)
{
while (vfs_next_dirent(handle, &dent, ".xml"))
while (vfs_next_dirent(handle, &dent, ".xml") == 0)
{
CBaseEntity newTemplate;
if( newTemplate.loadXML( pathname + dent.name ) )