Created
June 12, 2011 11:42
-
-
Save SeTM/1021469 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 2fdbb32800724e79d2a2c1eb02b150e1629cfc1f Mon Sep 17 00:00:00 2001 | |
From: SeT <set@wowacadem.ru> | |
Date: Sun, 12 Jun 2011 14:12:50 +0700 | |
Subject: [PATCH 1/2] Strange | |
--- | |
base/BSW_instance.cpp | 8 +++----- | |
1 files changed, 3 insertions(+), 5 deletions(-) | |
diff --git a/base/BSW_instance.cpp b/base/BSW_instance.cpp | |
index 8f7aa48..ac670f9 100644 | |
--- a/base/BSW_instance.cpp | |
+++ b/base/BSW_instance.cpp | |
@@ -39,12 +39,10 @@ void BSWScriptedInstance::DoCompleteAchievement(uint32 uiAchievmentId) | |
void BSWScriptedInstance::DoOpenDoor(ObjectGuid guid) | |
{ | |
if (guid.IsEmpty()) | |
- return; | |
- | |
- GameObject* pGo = instance->GetGameObject(guid); | |
+ return; | |
- if (pGo) | |
- pGo->SetGoState(GO_STATE_ACTIVE); | |
+ if (GameObject* Go = instance->GetGameObject(guid)) | |
+ Go->SetGoState(GO_STATE_ACTIVE); | |
else | |
debug_log("BSW: DoOpenDoor attempt set data to object %u, but no this object", guid); | |
} | |
-- | |
1.7.4.msysgit.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment