From 792de880cf738530bdb11dc3b378c834e941585c Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Thu, 21 Apr 2011 11:00:00 +0200 Subject: [PATCH] another constness fix --- apps/openmw/mwworld/world.cpp | 5 +++++ apps/openmw/mwworld/world.hpp | 2 ++ 2 files changed, 7 insertions(+) diff --git a/apps/openmw/mwworld/world.cpp b/apps/openmw/mwworld/world.cpp index dde3ff711..f10bbfc9a 100644 --- a/apps/openmw/mwworld/world.cpp +++ b/apps/openmw/mwworld/world.cpp @@ -480,6 +480,11 @@ namespace MWWorld return (*mGlobalVariables)[name]; } + Globals::Data World::getGlobalVariable (const std::string& name) const + { + return (*mGlobalVariables)[name]; + } + char World::getGlobalVariableType (const std::string& name) const { return mGlobalVariables->getType (name); diff --git a/apps/openmw/mwworld/world.hpp b/apps/openmw/mwworld/world.hpp index 76d6bd922..f7e5bd3f7 100644 --- a/apps/openmw/mwworld/world.hpp +++ b/apps/openmw/mwworld/world.hpp @@ -125,6 +125,8 @@ namespace MWWorld Globals::Data& getGlobalVariable (const std::string& name); + Globals::Data getGlobalVariable (const std::string& name) const; + char getGlobalVariableType (const std::string& name) const; ///< Return ' ', if there is no global variable with this name.