aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Scripting
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2012-03-10 20:53:26 +0100
committerShauren <shauren.trinity@gmail.com>2012-03-10 20:53:26 +0100
commitf85fdbebe7db448d895bb97ee5eafa393a1f6547 (patch)
treed1d01c5c093c153c2bd6ee2fdcc8d401dbdd6aaa /src/server/game/Scripting
parent73282f9789724e30f45c89b80bd26fc8e618e8b0 (diff)
Core/DBC: Remove store getters (useless since we don't have scripts as external dll)
Diffstat (limited to 'src/server/game/Scripting')
-rwxr-xr-xsrc/server/game/Scripting/ScriptMgr.cpp2
-rwxr-xr-xsrc/server/game/Scripting/ScriptSystem.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Scripting/ScriptMgr.cpp b/src/server/game/Scripting/ScriptMgr.cpp
index ac15bd5c985..fba6b460ec9 100755
--- a/src/server/game/Scripting/ScriptMgr.cpp
+++ b/src/server/game/Scripting/ScriptMgr.cpp
@@ -181,7 +181,7 @@ void DoScriptText(int32 iTextEntry, WorldObject* pSource, Unit* target)
if (pData->uiSoundId)
{
- if (GetSoundEntriesStore()->LookupEntry(pData->uiSoundId))
+ if (sSoundEntriesStore.LookupEntry(pData->uiSoundId))
pSource->SendPlaySound(pData->uiSoundId, false);
else
sLog->outError("TSCR: DoScriptText entry %i tried to process invalid sound id %u.", iTextEntry, pData->uiSoundId);
diff --git a/src/server/game/Scripting/ScriptSystem.cpp b/src/server/game/Scripting/ScriptSystem.cpp
index 65e855cd887..ecb82a80a8d 100755
--- a/src/server/game/Scripting/ScriptSystem.cpp
+++ b/src/server/game/Scripting/ScriptSystem.cpp
@@ -67,7 +67,7 @@ void SystemMgr::LoadScriptTexts()
if (temp.uiSoundId)
{
- if (!GetSoundEntriesStore()->LookupEntry(temp.uiSoundId))
+ if (!sSoundEntriesStore.LookupEntry(temp.uiSoundId))
sLog->outErrorDb("TSCR: Entry %i in table `script_texts` has soundId %u but sound does not exist.", iId, temp.uiSoundId);
}
@@ -129,7 +129,7 @@ void SystemMgr::LoadScriptTextsCustom()
if (temp.uiSoundId)
{
- if (!GetSoundEntriesStore()->LookupEntry(temp.uiSoundId))
+ if (!sSoundEntriesStore.LookupEntry(temp.uiSoundId))
sLog->outErrorDb("TSCR: Entry %i in table `custom_texts` has soundId %u but sound does not exist.", iId, temp.uiSoundId);
}