Replace MSVC __debugbreak with cross-compiler DEBUG_BREAK macro. (#1540)
Nightly Server Release / build (Windows64) (push) Canceled after 0s
Nightly Server Release / release (push) Canceled after 0s
Nightly Server Release / Build and Push Docker Image (push) Canceled after 0s
Nightly Server Release / cleanup (push) Canceled after 0s
Nightly Release / build (Windows64) (push) Canceled after 0s
Nightly Release / release (push) Canceled after 0s
Nightly Release / cleanup (push) Canceled after 0s
Nightly Server Release / build (Windows64) (push) Canceled after 0s
Nightly Server Release / release (push) Canceled after 0s
Nightly Server Release / Build and Push Docker Image (push) Canceled after 0s
Nightly Server Release / cleanup (push) Canceled after 0s
Nightly Release / build (Windows64) (push) Canceled after 0s
Nightly Release / release (push) Canceled after 0s
Nightly Release / cleanup (push) Canceled after 0s
This commit is contained in:
@@ -15,7 +15,7 @@ WeighedRandomItem *WeighedRandom::getRandomItem(Random *random, vector<WeighedRa
|
||||
{
|
||||
if (totalWeight <= 0)
|
||||
{
|
||||
__debugbreak();
|
||||
DEBUG_BREAK();
|
||||
}
|
||||
|
||||
int selection = random->nextInt(totalWeight);
|
||||
@@ -50,7 +50,7 @@ WeighedRandomItem *WeighedRandom::getRandomItem(Random *random, WeighedRandomIte
|
||||
{
|
||||
if (totalWeight <= 0)
|
||||
{
|
||||
__debugbreak();
|
||||
DEBUG_BREAK();
|
||||
}
|
||||
|
||||
int selection = random->nextInt(totalWeight);
|
||||
|
||||
Reference in New Issue
Block a user