# Editor Crash:: if (GetNumber() == NAME\_NO\_NUMBER\_INTERNAL)

**URL:** <https://forums.unrealengine.com/t/editor-crash-if-getnumber-name-no-number-internal/630488>\
**Category:** C++\
**Tags:** UE4-20, unreal-engine, UE4, question, CPP\
**Created:** [August 17, 2022, 6:44pm UTC](https://forums.unrealengine.com/t/editor-crash-if-getnumber-name-no-number-internal/630488 "2022-08-17T18:44:28Z")\
**Posts on this page:** 1\
**Showing post:** 68

<div class="post-metadata">

**Author:** ![Alexa.Ki](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alexa.ki/32/562753_2.png) [@Alexa.Ki](https://forums.unrealengine.com/u/Alexa.Ki)\
**Post date:** [August 22, 2022, 12:39am UTC](https://forums.unrealengine.com/t/editor-crash-if-getnumber-name-no-number-internal/630488/68 "2022-08-22T00:39:56Z")

</div>

@gh0stfase1 @Jambax @c0r37py @Emaer @Rumzie

this contains the function generate items function, if you have any question about any part or anything else i will explain , this code runs the first time and then when I close the game and re-run the engine freezed.

1. but when i comment `do/while` loop at line` 101`, the engine not freezed.
2. when i decrease the rows of locations in `DT_ItemGroupSpawnLocationLobby` the game works fine.

[MyGameMode.cpp](https://forums.unrealengine.com/uploads/short-url/7FKFuqCS2G8GPab0p9sc0bcdbJY.cpp) (9.7 KB)

---

_[View the full topic](https://forums.unrealengine.com/t/editor-crash-if-getnumber-name-no-number-internal/630488)._
