Skip to content

Commit b49f998

Browse files
committed
Build: fix gcc build by removing useless validations
compilation terminated due to -Wfatal-errors. cc1plus: all warnings being treated as errors
1 parent 12d3e07 commit b49f998

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/server/game/AI/SmartScripts/SmartScriptMgr.cpp

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1879,12 +1879,6 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e)
18791879
}
18801880
break;
18811881
case SMART_ACTION_PAUSE_MOVEMENT:
1882-
if (e.action.pauseMovement.pauseTimer < 0)
1883-
{
1884-
TC_LOG_ERROR("sql.sql", "Entry {} SourceType {} Event {} Action {} specifies invalid pause duration", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType());
1885-
return false;
1886-
}
1887-
18881882
TC_SAI_IS_BOOLEAN_VALID(e, e.action.pauseMovement.force);
18891883
break;
18901884
case SMART_ACTION_SET_MOVEMENT_SPEED:
@@ -2079,13 +2073,6 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e)
20792073
}
20802074
break;
20812075
}
2082-
case SMART_ACTION_RESUME_MOVEMENT:
2083-
if (e.action.resumeMovement.resumeTimer < 0)
2084-
{
2085-
TC_LOG_ERROR("sql.sql", "Entry {} SourceType {} Event {} Action {} specifies invalid resume duration", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType());
2086-
return false;
2087-
}
2088-
break;
20892076
case SMART_ACTION_FOLLOW:
20902077
case SMART_ACTION_SET_ORIENTATION:
20912078
case SMART_ACTION_STORE_TARGET_LIST:
@@ -2133,6 +2120,7 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e)
21332120
case SMART_ACTION_DESPAWN_SPAWNGROUP:
21342121
case SMART_ACTION_PLAY_CINEMATIC:
21352122
case SMART_ACTION_ADD_TO_STORED_TARGET_LIST:
2123+
case SMART_ACTION_RESUME_MOVEMENT:
21362124
break;
21372125
// Unused
21382126
case SMART_ACTION_SET_UNIT_FLAG:

0 commit comments

Comments
 (0)