AGOS: Fixed code analysis warnings - bug #3087828

svn-id: r53503
This commit is contained in:
Filippos Karapetis 2010-10-15 15:23:53 +00:00
parent 5961857049
commit db369838e2
2 changed files with 2 additions and 2 deletions

View File

@ -890,7 +890,7 @@ int AGOSEngine_PN::doline(int needsave) {
int myTag = ++_tagOfActiveDoline; // Obtain a unique tag for this doline invocation
_dolineReturnVal = 0;
if (needsave)
if (_stackbase && needsave)
_stackbase->tagOfParentDoline = myTag;
do {

View File

@ -185,7 +185,7 @@ void AGOSEngine_PN::hitBox5(HitArea *ha) {
_mousePrintFG++;
_mouseString = (const char *)"take \0";
_mouseString1 = getMessage(_objectName1, _dragStore->msg1);
_mouseString1 = _dragStore ? getMessage(_objectName1, _dragStore->msg1) : "";
if (_dragStore->flags & kOBFRoomBox)
_mouseString1 = (const char *)"all\r";