forked from 0ad/0ad
fixed usage of vfs_next_dirent
This was SVN commit r363.
This commit is contained in:
parent
f8dafe455d
commit
7c86e3459e
@ -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
|
||||
|
@ -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 ) )
|
||||
|
Loading…
Reference in New Issue
Block a user