From 623611f50b1aa269e6dc2020d424c66e7c6fd767 Mon Sep 17 00:00:00 2001 From: Xottab-DUTY Date: Mon, 13 Nov 2017 19:08:58 +0500 Subject: [PATCH] Fix xrGame compilation Was broken with 2039fc6c88f80ecb723348965a8d10a863a2365d --- src/xrServerEntities/xrServer_Objects_ALife.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xrServerEntities/xrServer_Objects_ALife.cpp b/src/xrServerEntities/xrServer_Objects_ALife.cpp index 89b5baa40f9..87eb921bbd9 100644 --- a/src/xrServerEntities/xrServer_Objects_ALife.cpp +++ b/src/xrServerEntities/xrServer_Objects_ALife.cpp @@ -91,8 +91,9 @@ bool SortStringsByAlphabetPred(const shared_str& s1, const shared_str& s2) R_ASSERT(s2.size()); return (xr_strcmp(s1, s2) < 0); -}; +} +#ifdef XRSE_FACTORY_EXPORTS struct story_name_predicate { IC bool operator()(const xr_rtoken& _1, const xr_rtoken& _2) const @@ -100,11 +101,10 @@ struct story_name_predicate VERIFY(_1.name.size()); VERIFY(_2.name.size()); - return (xr_strcmp(_1.name, _2.name) < 0); + return _1.name.compare(_2.name) < 0; } }; -#ifdef XRSE_FACTORY_EXPORTS SFillPropData::SFillPropData() { counter = 0; }; SFillPropData::~SFillPropData() { VERIFY(0 == counter); }; void SFillPropData::load()